class documentation

class twisted.cred.credentials.CramMD5Credentials: (source)

Implements interfaces: twisted.cred.credentials.IUsernameHashedPassword

View In Hierarchy

An encapsulation of some CramMD5 hashed credentials.

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

Undocumented

host = (source)

Undocumented

def getChallenge(self): (source)

Undocumented

def setResponse(self, response): (source)

Undocumented

def moreChallenges(self): (source)

Undocumented

def checkPassword(self, password): (source)

Validate these credentials against the correct password.

ParameterspasswordThe correct, plaintext password against which to check. (type: bytes)
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 20.12.1 at 2021-02-28 19:53:36.