Go to the latest version of this document.

# ``twisted`.`cred`.`credentials`.`DigestedCredentials``

class documentation

`class DigestedCredentials: (source)`

Constructor: `DigestedCredentials(username, method, realm, fields)`

Implements interfaces: `twisted.cred.credentials.IUsernameHashedPassword`, `twisted.web.iweb.IUsernameDigestHash`

View In Hierarchy

Yet Another Simple HTTP Digest authentication scheme.

Method | `__init__` | Undocumented
Method | `checkHash` | Verify that the credentials represented by this object agree with the credentials represented by the H(A1) given in `digestHash`.
Method | `checkPassword` | 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.
Instance Variable | `fields` | Undocumented
Instance Variable | `method` | Undocumented
Instance Variable | `realm` | Undocumented
Instance Variable | `username` | The username associated with these credentials.

def __init__(self, username, method, realm, fields): (source)

Undocumented

def checkHash(self, digestHash): (source)
from `twisted.web.iweb.IUsernameDigestHash`

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

Parameters
digestHash | A precomputed H(A1) value based on the username, realm, and password associate with this credentials object.

def checkPassword(self, password): (source)
from `twisted.cred.credentials.IUsernameHashedPassword`

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.

fields = (source)

Undocumented

method = (source)

Undocumented

realm = (source)

Undocumented

username = (source)
from `twisted.cred.credentials.IUsernameHashedPassword`

The username associated with these credentials.