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

Inherited from extern.log.log.Loggable: __providedBy__, 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...
  __provides__ = <zope.interface.declarations.ClassProvides obje...
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

Class Variable Details [hide private]

credentialInterfaces

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

__implemented__

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

__provides__

Value:
<zope.interface.declarations.ClassProvides object at 0x993366c>