Trees | Indices | Help |
---|
|
object --+ | common.common.InitMixin --+ | extern.log.log.Loggable --+ | component.BaseComponent --+ | Bouncer
I am the base class for all bouncer components.
|
|||
child class of BaseComponentMedium |
componentMediumClass the medium class to use for this component |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
bool |
|
||
bool |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
tuple of flumotion.common.keycards.Keycard class objects |
keycardClasses =
tuple of all classes of keycards this bouncer can authenticate, in order of preference |
||
logCategory =
Implementors can provide a category to log their messages under. |
|||
KEYCARD_EXPIRE_INTERVAL = 120
|
|||
Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
A subclass should do as little as possible in its init method. In particular, it should not try to access resources. Failures during init are marshalled back to the manager through the worker's remote_create method, since there is no component state proxied to the manager yet at the time of init.
|
BaseComponent vmethod for stopping. The component should do any cleanup it needs, but must not set the component's mood to sleeping.
|
Override to expire keycards managed by sub-classes.
|
Override to check keycards before authentication steps. Should return True if the keycard is valid, False otherwise. #FIXME: This belong to the base bouncer class
|
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 REFUSED to deny the keycard or a deferred which should have the same eventual value. FIXME: Currently, a return value of 'None' is treated as rejecting the keycard. This is unintuitive. FIXME: in fact, for authentication sessions like challenge/response, returning a keycard with state REFUSED instead of None will not work properly and may enter in an asynchronous infinit loop. |
Override to update sub-class specific data related to keycards. Called when the base bouncer accepts and references a new keycard. |
Override to cleanup sub-class specific data related to keycards. Called when the base bouncer has cleanup his references to a keycard. |
Adds a keycard to the bouncer. Can be called with the same keycard more than one time. If the keycard has already been added successfully, adding it again will succeed and return True.
|
Adds a keycard without checking. Used by sub-class knowing what they do. |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Aug 13 06:17:02 2013 | http://epydoc.sourceforge.net |