Package flumotion :: Package component :: Package plugs :: Module identity :: Class IdentityProviderExamplePlug
[hide private]

Class IdentityProviderExamplePlug

source code

                 object --+            
                          |            
extern.log.log.Loggable --+            
                          |            
                  base.Plug --+        
                              |        
               base.ManagerPlug --+    
                                  |    
               IdentityProviderPlug --+
                                      |
                                     IdentityProviderExamplePlug

Example implementation of the IdentityProviderPlug socket, randomly chooses an identity for the remote host.

Instance Methods [hide private]
a deferred that will fire a flumotion.common.identity.RemoteIdentity
computeIdentity(self, keycard, remoteHost) source code

Inherited from base.ManagerPlug: restart, start, stop

Inherited from base.Plug: __init__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Inherited from extern.log.log.Loggable: __providedBy__, __provides__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]

Inherited from extern.log.log.Loggable: __implemented__, logCategory

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

computeIdentity(self, keycard, remoteHost)

source code 
Parameters:
  • keycard - the keycard that the remote host used to log in.
  • remoteHost - the ip of the remote host
Returns: a deferred that will fire a flumotion.common.identity.RemoteIdentity
Overrides: IdentityProviderPlug.computeIdentity
(inherited documentation)