Package flumotion :: Package twisted :: Module checkers :: Class Sha256Checker
[show private | hide private]
[frames | no frames]

Class Sha256Checker

Loggable --+
           |
          Sha256Checker


I check credentials using a SHA-256-based backend.
Method Summary
  __init__(self, **users)
  addUser(self, username, salt, sha256Data)
Add the given username and password.
  requestAvatarId(self, credentials)
  _cbSha256PasswordMatch(self, matched, username)
    Inherited from Loggable
  debug(self, *args)
Log a debug message.
dict doLog(self, level, where, format, *args, **kwargs)
Log a message at the given level, with the possibility of going higher up in the stack.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, *args)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure, swallow)
Log a warning about a Failure.

Class Variable Summary
Implements __implemented__ = <implementedBy flumotion.twisted.check...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
tuple credentialInterfaces = (<MetaInterface flumotion.twisted...
str logCategory: Implementors can provide a category to log their messages under.
    Inherited from Loggable
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...

Method Details

addUser(self, username, salt, sha256Data)

Add the given username and password.
Parameters:
username - name of the user to add
           (type=str)
salt - the salt for this user
           (type=str)
sha256Data - the sha256 data for this user
           (type=str)

Class Variable Details

__implemented__

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

__provides__

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

credentialInterfaces

Type:
tuple
Value:
(<MetaInterface flumotion.twisted.credentials.IUsernameSha256Password>\
,)                                                                     

logCategory

Implementors can provide a category to log their messages under.
Type:
str
Value:
'sha256checker'                                                        

Generated by Epydoc 2.1 on Sun Oct 26 16:39:16 2008 http://epydoc.sf.net