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

Class IUsernameSha256Password

source code

         zope.interface.Interface --+    
                                    |    
twisted.cred.credentials.ICredentials --+
                                        |
                                       IUsernameSha256Password

I encapsulate a username and check SHA-256 passwords.

This credential interface is used when a SHA-256 algorithm is used on the password by the party requesting authentication.. CredentialCheckers which check this kind of credential must store the passwords in plaintext or SHA-256 form.

Instance Methods [hide private]
 
checkSha256Password(self, sha256Password)
Validate these credentials against the correct SHA-256 password.
source code
Class Variables [hide private]
  _InterfaceClass__attrs = {'checkSha256Password': <zope.interfa...
  __bases__ = (<InterfaceClass twisted.cred.credentials.ICredent...
  __identifier__ = 'flumotion.twisted.credentials.IUsernameSha25...
  __iro__ = (<InterfaceClass flumotion.twisted.credentials.IUser...
  __name__ = 'IUsernameSha256Password'
  __sro__ = (<InterfaceClass flumotion.twisted.credentials.IUser...
  _implied = {<InterfaceClass twisted.cred.credentials.ICredenti...
  dependents = <WeakKeyDictionary at 140627340>

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]

checkSha256Password(self, sha256Password)

source code 

Validate these credentials against the correct SHA-256 password.

Parameters:
  • sha256Password - The correct SHA-256 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:
{'checkSha256Password': <zope.interface.interface.Method object at 0x8\
61cf6c>}

__bases__

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

__identifier__

Value:
'flumotion.twisted.credentials.IUsernameSha256Password'

__iro__

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

__sro__

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

_implied

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