Package flumotion :: Package twisted :: Module credentials :: Class UsernameCryptPasswordCrypt
[show private | hide private]
[frames | no frames]

Class UsernameCryptPasswordCrypt


I take a username and a crypt password. When using me you should make sure the password was crypted with the correct salt (which is stored in the crypt password backend of whatever checker you use); otherwise your password may be a valid crypt, but with a different salt. I implement IUsernameCryptPassword.
Method Summary
  __init__(self, username, cryptPassword)
  checkCryptPassword(self, cryptPassword)
Check credentials against the given cryptPassword.
  setPasswordSalt(self, password, salt)
Given the plaintext password and the salt, set the correct cryptPassword.

Class Variable Summary
Implements __implemented__ = <implementedBy flumotion.twisted.crede...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...

Method Details

checkCryptPassword(self, cryptPassword)

Check credentials against the given cryptPassword.

setPasswordSalt(self, password, salt)

Given the plaintext password and the salt, set the correct cryptPassword.

Class Variable Details

__implemented__

Type:
Implements
Value:
<implementedBy flumotion.twisted.credentials.UsernameCryptPasswordCryp\
t>                                                                     

__providedBy__

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

__provides__

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

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