class documentation

class CramMD5Credentials: (source)

Constructor: CramMD5Credentials(host)

Implements interfaces: twisted.cred.credentials.IUsernameHashedPassword

View In Hierarchy

An encapsulation of some CramMD5 hashed credentials.

Method __init__ Undocumented
Method checkPassword Validate these credentials against the correct password.
Method getChallenge Undocumented
Method moreChallenges Undocumented
Method setResponse Undocumented
Instance Variable challenge The challenge to be sent to the client.
Instance Variable host Undocumented
Instance Variable response The hashed response from the client.
Instance Variable username The username from the response from the client.
def __init__(self, host=None): (source)

Undocumented

def checkPassword(self, password): (source)

Validate these credentials against the correct password.

Parameters
password:bytesThe correct, plaintext password against which to check.
Returns
bool or DeferredTrue 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.
def getChallenge(self): (source)

Undocumented

def moreChallenges(self): (source)

Undocumented

def setResponse(self, response): (source)

Undocumented

challenge: bytes = (source)

The challenge to be sent to the client.

Undocumented

The hashed response from the client.

username: bytes or None if not yet provided. = (source)

The username from the response from the client.