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

Class IUsernameCryptPassword

source code

         zope.interface.Interface --+    
                                    |    
twisted.cred.credentials.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.

Instance Methods [hide private]
 
checkCryptPassword(self, cryptPassword)
Validate these credentials against the correct crypt password.
source code
Class Variables [hide private]
  _InterfaceClass__attrs = {'checkCryptPassword': <zope.interfac...
  __bases__ = (<InterfaceClass twisted.cred.credentials.ICredent...
  __identifier__ = 'flumotion.twisted.credentials.IUsernameCrypt...
  __iro__ = (<InterfaceClass flumotion.twisted.credentials.IUser...
  __name__ = 'IUsernameCryptPassword'
  __sro__ = (<InterfaceClass flumotion.twisted.credentials.IUser...
  _implied = {<InterfaceClass twisted.cred.credentials.ICredenti...
  dependents = <WeakKeyDictionary at 140958604>

Inherited from zope.interface.Interface (private): _Element__tagged_values

Instance Variables [hide private]
str username
The username associated with these credentials.
Method Details [hide private]

checkCryptPassword(self, cryptPassword)

source code 

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.

Class Variable Details [hide private]

_InterfaceClass__attrs

Value:
{'checkCryptPassword': <zope.interface.interface.Method object at 0x86\
6dbec>}

__bases__

Value:
(<InterfaceClass twisted.cred.credentials.ICredentials>)

__identifier__

Value:
'flumotion.twisted.credentials.IUsernameCryptPassword'

__iro__

Value:
(<InterfaceClass flumotion.twisted.credentials.IUsernameCryptPassword>\
,
 <InterfaceClass twisted.cred.credentials.ICredentials>,
 <InterfaceClass zope.interface.Interface>)

__sro__

Value:
(<InterfaceClass flumotion.twisted.credentials.IUsernameCryptPassword>\
,
 <InterfaceClass twisted.cred.credentials.ICredentials>,
 <InterfaceClass zope.interface.Interface>)

_implied

Value:
{<InterfaceClass twisted.cred.credentials.ICredentials>: (),
 <InterfaceClass flumotion.twisted.credentials.IUsernameCryptPassword>\
: (),
 <InterfaceClass zope.interface.Interface>: ()}