class documentation

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

Implements interfaces: twisted.cred.credentials.IUsernameDigestHash, twisted.cred.credentials.IUsernameHashedPassword

View In Hierarchy

Yet Another Simple HTTP Digest authentication scheme.

Method __init__ Undocumented
Instance Variable username Undocumented
Instance Variable method Undocumented
Instance Variable realm Undocumented
Instance Variable fields Undocumented
Method checkPassword No summary
Method checkHash Verify that the credentials represented by this object agree with the credentials represented by the H(A1) given in digestHash.
def __init__(self, username, method, realm, fields): (source)

Undocumented

method = (source)

Undocumented

realm = (source)

Undocumented

fields = (source)

Undocumented

def checkPassword(self, password): (source)

Verify that the credentials represented by this object agree with the given plaintext password by hashing password in the same way the response hash represented by this object was generated and comparing the results.

def checkHash(self, digestHash): (source)

Verify that the credentials represented by this object agree with the credentials represented by the H(A1) given in digestHash.

ParametersdigestHashA precomputed H(A1) value based on the username, realm, and password associate with this credentials object.
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.