Package flumotion :: Package twisted :: Module checkers :: Class Sha256Checker
[hide private]

Class Sha256Checker

source code

extern.log.log.Loggable --+
                          |
                         Sha256Checker

I check credentials using a SHA-256-based backend.

Instance Methods [hide private]
 
__init__(self, **users) source code
 
addUser(self, username, salt, sha256Data)
Add the given username and password.
source code
 
_cbSha256PasswordMatch(self, matched, username) source code
 
requestAvatarId(self, credentials) source code
 
__provides__(...)
Special descriptor for class __provides__

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

Class Variables [hide private]
  credentialInterfaces = (<InterfaceClass flumotion.twisted.cred...
  logCategory = 'sha256checker'
Implementors can provide a category to log their messages under.
  __implemented__ = <implementedBy flumotion.twisted.checkers.Sh...
Method Details [hide private]

addUser(self, username, salt, sha256Data)

source code 

Add the given username and password.

Parameters:
  • username (str) - name of the user to add
  • salt (str) - the salt for this user
  • sha256Data (str) - the sha256 data for this user

__provides__(...)

 
Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that
we can get declarations for objects without instance-specific
interfaces a bit quicker.

For example:

  >>> from zope.interface import Interface
  >>> class IFooFactory(Interface):
  ...     pass
  >>> class IFoo(Interface):
  ...     pass
  >>> class C(object):
  ...     implements(IFoo)
  ...     classProvides(IFooFactory)
  >>> [i.getName() for i in C.__provides__]
  ['IFooFactory']

  >>> [i.getName() for i in C().__provides__]
  ['IFoo']


Class Variable Details [hide private]

credentialInterfaces

Value:
(<InterfaceClass flumotion.twisted.credentials.IUsernameSha256Password\
>)

__implemented__

Value:
<implementedBy flumotion.twisted.checkers.Sha256Checker>