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

Class ExampleIdentityProvider

source code

extern.log.log.Loggable --+            
                          |            
                  base.Plug --+        
                              |        
               base.ManagerPlug --+    
                                  |    
                   IdentityProvider --+
                                      |
                                     ExampleIdentityProvider

Example implementation of the IdentityProvider 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 extern.log.log.Loggable: __providedBy__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]

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

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: IdentityProvider.computeIdentity
(inherited documentation)