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

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

Known implementations: twisted.cred.credentials.UsernamePassword, twisted.mail.pop3.APOPCredentials

I encapsulate a username and a plaintext password.

This encapsulates the case where the password received over the network has been hashed with the identity function (That is, not at all). The CredentialsChecker may store the password in whatever format it desires, it need only transform the stored password in a similar way before performing the comparison.

Instance Variable username The username associated with these credentials. (type: str)
Instance Variable password The password associated with these credentials. (type: str)
Method checkPassword Validate these credentials against the correct password.
username =
The username associated with these credentials. (type: str)
password =
The password associated with these credentials. (type: str)
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 2013-11-08 22:07:30.