Trees | Indices | Help |
---|
|
object --+ | common.common.InitMixin --+ | extern.log.log.Loggable --+ | component.BaseComponent --+ | component.Bouncer --+ | MultiBouncer
|
|||
Inherited from |
|
|||
logCategory =
Implementors can provide a category to log their messages under. |
|||
tuple of flumotion.common.keycards.Keycard class objects |
keycardClasses = keycards.KeycardHTTPGetArguments, keycards.Ke tuple of all classes of keycards this bouncer can authenticate, in order of preference |
||
Inherited from 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.
|
Subclasses can implement me to set up the component before it is started. It should set up the component, possibly opening files and resources. Non-programming errors should not be raised, but returned as a failing deferred. The return value may be a deferred.
|
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 cleanup sub-class specific data related to keycards. Called when the base bouncer has cleanup his references to a keycard.
|
|
keycardClassestuple of all classes of keycards this bouncer can authenticate, in order of preference
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Aug 13 06:17:02 2013 | http://epydoc.sourceforge.net |