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

type 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 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

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)