t.c.c.IUsernameHashedPassword(ICredentials) : interface documentation

Part of twisted.cred.credentials View Source View In Hierarchy

Known implementations: twisted.cred.credentials.CramMD5Credentials, twisted.cred.credentials.DigestedCredentials, twisted.cred.credentials.UsernameHashedPassword, twisted.spread.pb._PortalAuthChallenger, twisted.web2.auth.digest.DigestedCredentials

I encapsulate a username and a hashed password.

This credential is used when a hashed password is received from the party requesting authentication. CredentialCheckers which check this kind of credential must store the passwords in plaintext (or as password-equivalent hashes) form so that they can be hashed in a manner appropriate for the particular credentials class.
Instance VariablesusernameThe username associated with these credentials. (type: str )
Method checkPassword Validate these credentials against the correct password.
def checkPassword(password): (source)
Validate these credentials against the correct password.
ParameterspasswordThe correct, plaintext password against which to check. (type: str )
ReturnsTrue if the credentials represented by this object match the given password, False if they do not, or a Deferred which will be called back with one of these values. (type: bool or Deferred )
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:12:41.