Package flumotion :: Package twisted :: Module pb :: Class _BouncerWrapper
[hide private]

Class _BouncerWrapper

source code

 twisted.spread.jelly.Jellyable --+        
                                  |        
twisted.spread.flavors.Serializable --+    
                                      |    
   twisted.spread.flavors.Referenceable --+
                                          |
                    common.log.Loggable --+
                                          |
                                         _BouncerWrapper

Instance Methods [hide private]
 
__init__(self, bouncerPortal, broker) source code
defer.Deferred firing list of str
remote_getKeycardClasses(self)
Returns: the fully-qualified class names of supported keycard interfaces
source code
 
remote_login(self, keycard, mind, *interfaces)
Start of keycard login.
source code
 
_authenticateCallback(self, result, mind, *interfaces) source code
 
_loggedIn(self, (interface, perspective, logout)) source code

Inherited from twisted.spread.flavors.Referenceable: jellyFor, remoteMessageReceived

Inherited from twisted.spread.flavors.Serializable: processUniqueID

Inherited from twisted.spread.jelly.Jellyable: __providedBy__, getStateFor

Inherited from common.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Class Variables [hide private]
  logCategory = '_BouncerWrapper'
Implementors can provide a category to log their messages under.

Inherited from twisted.spread.flavors.Referenceable: __implemented__, __provides__, perspective

Method Details [hide private]

remote_getKeycardClasses(self)

source code 
Returns: defer.Deferred firing list of str
the fully-qualified class names of supported keycard interfaces

remote_login(self, keycard, mind, *interfaces)

source code 

Start of keycard login.

Parameters:
  • interfaces - list of fully qualified names of interface objects
Returns:
one of
  • a flumotion.common.keycards.Keycard when more steps need to be performed
  • a twisted.spread.pb.AsReferenceable when authentication has succeeded, which will turn into a twisted.spread.pb.RemoteReference on the client side
  • a twisted.cred.error.UnauthorizedLogin when authentication is denied