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

Type IUsernameCryptPassword

object --+        
         |        
 Interface --+    
             |    
  ICredentials --+
                 |
                IUsernameCryptPassword


I encapsulate a username and check crypted passwords.

This credential interface is used when a crypt password is received from the party requesting authentication. CredentialCheckers which check this kind of credential must store the passwords in plaintext or crypt form.
Method Summary
  checkCryptPassword(self, cryptPassword)
Validate these credentials against the correct crypt password.
    Inherited from Interface
  adaptWith(self, using, to, registry)
(Class method)
    Inherited from object
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Instance Variable Summary
str username: The username associated with these credentials.

Class Variable Summary
    Inherited from ICredentials
  __implements__: Implementors _must_ provide an __implements__ attribute which contains at least the list of sub-interfaces of ICredentials to which it conforms.

Instance Method Details

checkCryptPassword(self, cryptPassword)

Validate these credentials against the correct crypt password.
Parameters:
cryptPassword - The correct, crypt password against which to check.
Returns:
a deferred which becomes, or a boolean indicating if the password matches.

Instance Variable Details

username

The username associated with these credentials.
Type:
str

Generated by Epydoc 2.1 on Tue Dec 20 15:33:10 2005 http://epydoc.sf.net