Package flumotion :: Package component :: Package bouncers :: Module plug :: Class ChallengeResponseBouncerPlug
[hide private]

Class ChallengeResponseBouncerPlug

source code

extern.log.log.Loggable --+            
                          |            
            plugs.base.Plug --+        
                              |        
       plugs.base.ComponentPlug --+    
                                  |    
                     object --+   |    
                              |   |    
        common.common.InitMixin --+    
                                  |    
                        BouncerPlug --+
                                      |
                                     ChallengeResponseBouncerPlug

A base class for Challenge-Response bouncers

Instance Methods [hide private]
 
init(self) source code
 
setChecker(self, checker) source code
 
addUser(self, user, salt, *args) source code
 
_requestAvatarIdCallback(self, PossibleAvatarId, keycard) source code
 
_requestAvatarIdErrback(self, failure, keycard) source code
 
do_authenticate(self, keycard)
Must be overridden by subclasses.
source code

Inherited from BouncerPlug: __init__, addKeycard, authenticate, expireAllKeycards, expireKeycardId, generateKeycardId, hasKeycard, keepAlive, removeKeycard, removeKeycardId, setEnabled, setMedium, stop, typeAllowed

Inherited from BouncerPlug (private): _expire

Inherited from plugs.base.ComponentPlug: restart, start

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

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

Class Variables [hide private]
  challengeResponseClasses = ()

Inherited from BouncerPlug: KEYCARD_EXPIRE_INTERVAL, keycardClasses, logCategory

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

init(self)

source code 
Overrides: BouncerPlug.init

do_authenticate(self, keycard)

source code 

Must be overridden by subclasses.

Authenticate the given keycard. Return the keycard with state AUTHENTICATED to authenticate, with state REQUESTING to continue the authentication process, or None to deny the keycard, or a deferred which should have the same eventual value.

Overrides: BouncerPlug.do_authenticate
(inherited documentation)