Package flumotion :: Package twisted :: Module credentials :: Class UsernameCryptPasswordCrypt
[hide private]

Class UsernameCryptPasswordCrypt

source code

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.

Instance Methods [hide private]
 
__init__(self, username, cryptPassword=None) source code
 
setPasswordSalt(self, password, salt)
Given the plaintext password and the salt, set the correct cryptPassword.
source code
 
checkCryptPassword(self, cryptPassword)
Check credentials against the given cryptPassword.
source code
 
__providedBy__(...)
Object Specification Descriptor
source code
 
__provides__(...)
Special descriptor for class __provides__
Class Variables [hide private]
  __implemented__ = <implementedBy flumotion.twisted.credentials...
Method Details [hide private]

__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]

__implemented__

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