Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr Str attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad Str Str Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If NameLoad body Assign NameStore Str orelse Assign NameStore Str Return Call AttributeLoad Str attr ListComp BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareIsNot NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Str AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Str AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Assign NameStore BinOpAdd Str Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Assign NameStore BinOpAdd Str Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad Call NameLoad BinOpAdd NameLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad Call NameLoad BinOpAdd NameLoad Str attr Assign NameStore BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore TupleLoad TupleLoad Str Str Str Str TupleLoad NameLoad Str NameLoad Str TupleLoad NameLoad NameLoad Str Str For TupleStore NameStore NameStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad NameLoad NameLoad Str Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Str Num NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list
N/A N/A 
Tests for L{twisted.cred._digest} and the associated bits in
L{twisted.cred.credentials}.
 zope.interface.verify verifyObject twisted.trial.unittest TestCase twisted.python.hashlib md5 sha1 twisted.internet.address IPv4Address twisted.cred.error LoginFailed twisted.cred.credentials calcHA1 calcHA2 IUsernameDigestHash twisted.cred.credentials calcResponse DigestCredentialFactory b64encode N/A N/A s N/A N/A N/A N/A N/A N/A N/A s encode base64 strip N/A FakeDigestCredentialFactory N/A DigestCredentialFactory N/A N/A 
    A Fake Digest Credential Factory that generates a predictable
    nonce and opaque
     __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super FakeDigestCredentialFactory self __init__ args kwargs N/A N/A self privateKey 0 N/A _generateNonce N/A N/A self N/A N/A N/A 
        Generate a static nonce
         N/A 178288758716122392881254770685 N/A _getTime N/A N/A self N/A N/A N/A 
        Return a stable time
         N/A 0 N/A N/A DigestAuthTests N/A TestCase N/A N/A 
    L{TestCase} mixin class which defines a number of tests for
    L{DigestCredentialFactory}.  Because this mixin defines C{setUp}, it
    must be inherited before L{TestCase}.
     setUp N/A N/A self N/A N/A N/A 
        Create a DigestCredentialFactory for testing
         N/A N/A self username foobar N/A N/A self password bazquux N/A N/A self realm test realm N/A N/A self algorithm md5 N/A N/A self cnonce 29fc54aa1641c6fa0e151419361c8f23 N/A N/A self qop auth N/A N/A self uri /write/ N/A N/A self clientAddress N/A IPv4Address TCP 10.2.3.4 43125 N/A N/A self method GET N/A N/A self credentialFactory N/A DigestCredentialFactory N/A self algorithm N/A self realm N/A test_MD5HashA1 N/A N/A self _algorithm _hash N/A md5 md5 N/A N/A 
        L{calcHA1} accepts the C{'md5'} algorithm and returns an MD5 hash of
        its parameters, excluding the nonce and cnonce.
         N/A nonce abc123xyz N/A hashA1 N/A calcHA1 _algorithm N/A self username N/A self realm N/A self password nonce N/A self cnonce N/A a1 N/A %s:%s:%s N/A N/A self username N/A self realm N/A self password N/A expected N/A N/A N/A _hash a1 hexdigest N/A N/A N/A self assertEqual hashA1 expected N/A test_MD5SessionHashA1 N/A N/A self N/A N/A N/A 
        L{calcHA1} accepts the C{'md5-sess'} algorithm and returns an MD5 hash
        of its parameters, including the nonce and cnonce.
         N/A nonce xyz321abc N/A hashA1 N/A calcHA1 md5-sess N/A self username N/A self realm N/A self password nonce N/A self cnonce N/A a1 N/A %s:%s:%s N/A N/A self username N/A self realm N/A self password N/A ha1 N/A N/A N/A md5 a1 digest N/A a1 N/A %s:%s:%s N/A ha1 nonce N/A self cnonce N/A expected N/A N/A N/A md5 a1 hexdigest N/A N/A N/A self assertEqual hashA1 expected N/A test_SHAHashA1 N/A N/A self N/A N/A N/A 
        L{calcHA1} accepts the C{'sha'} algorithm and returns a SHA hash of its
        parameters, excluding the nonce and cnonce.
         N/A N/A N/A self test_MD5HashA1 sha sha1 N/A test_MD5HashA2Auth N/A N/A self _algorithm _hash N/A md5 md5 N/A N/A 
        L{calcHA2} accepts the C{'md5'} algorithm and returns an MD5 hash of
        its arguments, excluding the entity hash for QOP other than
        C{'auth-int'}.
         N/A method GET N/A hashA2 N/A calcHA2 _algorithm method N/A self uri auth None N/A a2 N/A %s:%s N/A method N/A self uri N/A expected N/A N/A N/A _hash a2 hexdigest N/A N/A N/A self assertEqual hashA2 expected N/A test_MD5HashA2AuthInt N/A N/A self _algorithm _hash N/A md5 md5 N/A N/A 
        L{calcHA2} accepts the C{'md5'} algorithm and returns an MD5 hash of
        its arguments, including the entity hash for QOP of C{'auth-int'}.
         N/A method GET N/A hentity foobarbaz N/A hashA2 N/A calcHA2 _algorithm method N/A self uri auth-int hentity N/A a2 N/A %s:%s:%s N/A method N/A self uri hentity N/A expected N/A N/A N/A _hash a2 hexdigest N/A N/A N/A self assertEqual hashA2 expected N/A test_MD5SessHashA2Auth N/A N/A self N/A N/A N/A 
        L{calcHA2} accepts the C{'md5-sess'} algorithm and QOP of C{'auth'} and
        returns the same value as it does for the C{'md5'} algorithm.
         N/A N/A N/A self test_MD5HashA2Auth md5-sess N/A test_MD5SessHashA2AuthInt N/A N/A self N/A N/A N/A 
        L{calcHA2} accepts the C{'md5-sess'} algorithm and QOP of C{'auth-int'}
        and returns the same value as it does for the C{'md5'} algorithm.
         N/A N/A N/A self test_MD5HashA2AuthInt md5-sess N/A test_SHAHashA2Auth N/A N/A self N/A N/A N/A 
        L{calcHA2} accepts the C{'sha'} algorithm and returns a SHA hash of
        its arguments, excluding the entity hash for QOP other than
        C{'auth-int'}.
         N/A N/A N/A self test_MD5HashA2Auth sha sha1 N/A test_SHAHashA2AuthInt N/A N/A self N/A N/A N/A 
        L{calcHA2} accepts the C{'sha'} algorithm and returns a SHA hash of
        its arguments, including the entity hash for QOP of C{'auth-int'}.
         N/A N/A N/A self test_MD5HashA2AuthInt sha sha1 N/A test_MD5HashResponse N/A N/A self _algorithm _hash N/A md5 md5 N/A N/A 
        L{calcResponse} accepts the C{'md5'} algorithm and returns an MD5 hash
        of its parameters, excluding the nonce count, client nonce, and QoP
        value if the nonce count and client nonce are C{None}
         N/A hashA1 abc123 N/A hashA2 789xyz N/A nonce lmnopq N/A response N/A %s:%s:%s N/A hashA1 nonce hashA2 N/A expected N/A N/A N/A _hash response hexdigest N/A digest N/A calcResponse hashA1 hashA2 _algorithm nonce None None None N/A N/A N/A self assertEqual expected digest N/A test_MD5SessionHashResponse N/A N/A self N/A N/A N/A 
        L{calcResponse} accepts the C{'md5-sess'} algorithm and returns an MD5
        hash of its parameters, excluding the nonce count, client nonce, and
        QoP value if the nonce count and client nonce are C{None}
         N/A N/A N/A self test_MD5HashResponse md5-sess N/A test_SHAHashResponse N/A N/A self N/A N/A N/A 
        L{calcResponse} accepts the C{'sha'} algorithm and returns a SHA hash
        of its parameters, excluding the nonce count, client nonce, and QoP
        value if the nonce count and client nonce are C{None}
         N/A N/A N/A self test_MD5HashResponse sha sha1 N/A test_MD5HashResponseExtra N/A N/A self _algorithm _hash N/A md5 md5 N/A N/A 
        L{calcResponse} accepts the C{'md5'} algorithm and returns an MD5 hash
        of its parameters, including the nonce count, client nonce, and QoP
        value if they are specified.
         N/A hashA1 abc123 N/A hashA2 789xyz N/A nonce lmnopq N/A nonceCount 00000004 N/A clientNonce abcxyz123 N/A qop auth N/A response N/A %s:%s:%s:%s:%s:%s N/A hashA1 nonce nonceCount clientNonce qop hashA2 N/A expected N/A N/A N/A _hash response hexdigest N/A digest N/A calcResponse hashA1 hashA2 _algorithm nonce nonceCount clientNonce qop N/A N/A N/A self assertEqual expected digest N/A test_MD5SessionHashResponseExtra N/A N/A self N/A N/A N/A 
        L{calcResponse} accepts the C{'md5-sess'} algorithm and returns an MD5
        hash of its parameters, including the nonce count, client nonce, and
        QoP value if they are specified.
         N/A N/A N/A self test_MD5HashResponseExtra md5-sess N/A test_SHAHashResponseExtra N/A N/A self N/A N/A N/A 
        L{calcResponse} accepts the C{'sha'} algorithm and returns a SHA hash
        of its parameters, including the nonce count, client nonce, and QoP
        value if they are specified.
         N/A N/A N/A self test_MD5HashResponseExtra sha sha1 N/A formatResponse N/A N/A self quotes N/A True kw N/A N/A 
        Format all given keyword arguments and their values suitably for use as
        the value of an HTTP header.

        @types quotes: C{bool}
        @param quotes: A flag indicating whether to quote the values of each
            field in the response.

        @param **kw: Keywords and C{str} values which will be treated as field
            name/value pairs to include in the result.

        @rtype: C{str}
        @return: The given fields formatted for use as an HTTP header value.
         N/A N/A username kw N/A N/A N/A kw N/A username N/A self username N/A N/A realm kw N/A N/A N/A kw N/A realm N/A self realm N/A N/A algorithm kw N/A N/A N/A kw N/A algorithm N/A self algorithm N/A N/A qop kw N/A N/A N/A kw N/A qop N/A self qop N/A N/A cnonce kw N/A N/A N/A kw N/A cnonce N/A self cnonce N/A N/A uri kw N/A N/A N/A kw N/A uri N/A self uri N/A quotes N/A N/A quote " N/A N/A quote N/A N/A N/A ,  join N/A N/A %s=%s%s%s N/A k quote v quote N/A N/A k v N/A N/A kw iteritems N/A v None N/A getDigestResponse N/A N/A self challenge ncount N/A N/A N/A 
        Calculate the response for the given challenge
         N/A nonce N/A N/A challenge get nonce N/A algo N/A N/A N/A N/A challenge get algorithm lower N/A qop N/A N/A challenge get qop N/A ha1 N/A calcHA1 algo N/A self username N/A self realm N/A self password nonce N/A self cnonce N/A ha2 N/A calcHA2 algo GET N/A self uri qop None N/A expected N/A calcResponse ha1 ha2 algo nonce ncount N/A self cnonce qop N/A expected N/A test_response N/A N/A self quotes N/A True N/A N/A 
        L{DigestCredentialFactory.decode} accepts a digest challenge response
        and parses it into an L{IUsernameHashedPassword} provider.
         N/A challenge N/A N/A N/A self credentialFactory getChallenge N/A N/A self clientAddress host N/A nc 00000001 N/A clientResponse N/A N/A self formatResponse quotes quotes nonce N/A challenge N/A nonce response N/A N/A self getDigestResponse challenge nc nc nc opaque N/A challenge N/A opaque N/A creds N/A N/A N/A self credentialFactory decode clientResponse N/A self method N/A N/A self clientAddress host N/A N/A N/A self assertTrue N/A N/A creds checkPassword N/A self password N/A N/A N/A self assertFalse N/A N/A creds checkPassword N/A N/A self password wrong N/A test_responseWithoutQuotes N/A N/A self N/A N/A N/A 
        L{DigestCredentialFactory.decode} accepts a digest challenge response
        which does not quote the values of its fields and parses it into an
        L{IUsernameHashedPassword} provider in the same way it would a
        response which included quoted field values.
         N/A N/A N/A self test_response False N/A test_caseInsensitiveAlgorithm N/A N/A self N/A N/A N/A 
        The case of the algorithm value in the response is ignored when
        checking the credentials.
         N/A N/A self algorithm MD5 N/A N/A N/A self test_response N/A test_md5DefaultAlgorithm N/A N/A self N/A N/A N/A 
        The algorithm defaults to MD5 if it is not supplied in the response.
         N/A N/A self algorithm None N/A N/A N/A self test_response N/A test_responseWithoutClientIP N/A N/A self N/A N/A N/A 
        L{DigestCredentialFactory.decode} accepts a digest challenge response
        even if the client address it is passed is C{None}.
         N/A challenge N/A N/A N/A self credentialFactory getChallenge None N/A nc 00000001 N/A clientResponse N/A N/A self formatResponse nonce N/A challenge N/A nonce response N/A N/A self getDigestResponse challenge nc nc nc opaque N/A challenge N/A opaque N/A creds N/A N/A N/A self credentialFactory decode clientResponse N/A self method None N/A N/A N/A self assertTrue N/A N/A creds checkPassword N/A self password N/A N/A N/A self assertFalse N/A N/A creds checkPassword N/A N/A self password wrong N/A test_multiResponse N/A N/A self N/A N/A N/A 
        L{DigestCredentialFactory.decode} handles multiple responses to a
        single challenge.
         N/A challenge N/A N/A N/A self credentialFactory getChallenge N/A N/A self clientAddress host N/A nc 00000001 N/A clientResponse N/A N/A self formatResponse nonce N/A challenge N/A nonce response N/A N/A self getDigestResponse challenge nc nc nc opaque N/A challenge N/A opaque N/A creds N/A N/A N/A self credentialFactory decode clientResponse N/A self method N/A N/A self clientAddress host N/A N/A N/A self assertTrue N/A N/A creds checkPassword N/A self password N/A N/A N/A self assertFalse N/A N/A creds checkPassword N/A N/A self password wrong N/A nc 00000002 N/A clientResponse N/A N/A self formatResponse nonce N/A challenge N/A nonce response N/A N/A self getDigestResponse challenge nc nc nc opaque N/A challenge N/A opaque N/A creds N/A N/A N/A self credentialFactory decode clientResponse N/A self method N/A N/A self clientAddress host N/A N/A N/A self assertTrue N/A N/A creds checkPassword N/A self password N/A N/A N/A self assertFalse N/A N/A creds checkPassword N/A N/A self password wrong N/A test_failsWithDifferentMethod N/A N/A self N/A N/A N/A 
        L{DigestCredentialFactory.decode} returns an L{IUsernameHashedPassword}
        provider which rejects a correct password for the given user if the
        challenge response request is made using a different HTTP method than
        was used to request the initial challenge.
         N/A challenge N/A N/A N/A self credentialFactory getChallenge N/A N/A self clientAddress host N/A nc 00000001 N/A clientResponse N/A N/A self formatResponse nonce N/A challenge N/A nonce response N/A N/A self getDigestResponse challenge nc nc nc opaque N/A challenge N/A opaque N/A creds N/A N/A N/A self credentialFactory decode clientResponse POST N/A N/A self clientAddress host N/A N/A N/A self assertFalse N/A N/A creds checkPassword N/A self password N/A N/A N/A self assertFalse N/A N/A creds checkPassword N/A N/A self password wrong N/A test_noUsername N/A N/A self N/A N/A N/A 
        L{DigestCredentialFactory.decode} raises L{LoginFailed} if the response
        has no username field or if the username field is empty.
         N/A e N/A N/A self assertRaises LoginFailed N/A N/A self credentialFactory decode N/A N/A self formatResponse username None N/A self method N/A N/A self clientAddress host N/A N/A N/A self assertEqual N/A str e Invalid response, no username given. N/A e N/A N/A self assertRaises LoginFailed N/A N/A self credentialFactory decode N/A N/A self formatResponse username N/A self method N/A N/A self clientAddress host N/A N/A N/A self assertEqual N/A str e Invalid response, no username given. N/A test_noNonce N/A N/A self N/A N/A N/A 
        L{DigestCredentialFactory.decode} raises L{LoginFailed} if the response
        has no nonce.
         N/A e N/A N/A self assertRaises LoginFailed N/A N/A self credentialFactory decode N/A N/A self formatResponse opaque abc123 N/A self method N/A N/A self clientAddress host N/A N/A N/A self assertEqual N/A str e Invalid response, no nonce given. N/A test_noOpaque N/A N/A self N/A N/A N/A 
        L{DigestCredentialFactory.decode} raises L{LoginFailed} if the response
        has no opaque.
         N/A e N/A N/A self assertRaises LoginFailed N/A N/A self credentialFactory decode N/A N/A self formatResponse N/A self method N/A N/A self clientAddress host N/A N/A N/A self assertEqual N/A str e Invalid response, no opaque given. N/A test_checkHash N/A N/A self N/A N/A N/A 
        L{DigestCredentialFactory.decode} returns an L{IUsernameDigestHash}
        provider which can verify a hash of the form 'username:realm:password'.
         N/A challenge N/A N/A N/A self credentialFactory getChallenge N/A N/A self clientAddress host N/A nc 00000001 N/A clientResponse N/A N/A self formatResponse nonce N/A challenge N/A nonce response N/A N/A self getDigestResponse challenge nc nc nc opaque N/A challenge N/A opaque N/A creds N/A N/A N/A self credentialFactory decode clientResponse N/A self method N/A N/A self clientAddress host N/A N/A N/A self assertTrue N/A verifyObject IUsernameDigestHash creds N/A cleartext N/A %s:%s:%s N/A N/A self username N/A self realm N/A self password N/A hash N/A md5 cleartext N/A N/A N/A self assertTrue N/A N/A creds checkHash N/A N/A hash hexdigest N/A N/A N/A hash update wrong N/A N/A N/A self assertFalse N/A N/A creds checkHash N/A N/A hash hexdigest N/A test_invalidOpaque N/A N/A self N/A N/A N/A 
        L{DigestCredentialFactory.decode} raises L{LoginFailed} when the opaque
        value does not contain all the required parts.
         N/A credentialFactory N/A FakeDigestCredentialFactory N/A self algorithm N/A self realm N/A challenge N/A N/A credentialFactory getChallenge N/A N/A self clientAddress host N/A exc N/A N/A self assertRaises LoginFailed N/A credentialFactory _verifyOpaque badOpaque N/A challenge N/A nonce N/A N/A self clientAddress host N/A N/A N/A self assertEqual N/A str exc Invalid response, invalid opaque value N/A badOpaque N/A foo- N/A b64encode nonce,clientip N/A exc N/A N/A self assertRaises LoginFailed N/A credentialFactory _verifyOpaque badOpaque N/A challenge N/A nonce N/A N/A self clientAddress host N/A N/A N/A self assertEqual N/A str exc Invalid response, invalid opaque value N/A exc N/A N/A self assertRaises LoginFailed N/A credentialFactory _verifyOpaque N/A challenge N/A nonce N/A N/A self clientAddress host N/A N/A N/A self assertEqual N/A str exc Invalid response, invalid opaque value N/A badOpaque N/A foo- N/A b64encode N/A %s,%s,foobar N/A N/A challenge N/A nonce N/A N/A self clientAddress host N/A exc N/A N/A self assertRaises LoginFailed N/A credentialFactory _verifyOpaque badOpaque N/A challenge N/A nonce N/A N/A self clientAddress host N/A N/A N/A self assertEqual N/A str exc Invalid response, invalid opaque/time values N/A test_incompatibleNonce N/A N/A self N/A N/A N/A 
        L{DigestCredentialFactory.decode} raises L{LoginFailed} when the given
        nonce from the response does not match the nonce encoded in the opaque.
         N/A credentialFactory N/A FakeDigestCredentialFactory N/A self algorithm N/A self realm N/A challenge N/A N/A credentialFactory getChallenge N/A N/A self clientAddress host N/A badNonceOpaque N/A N/A credentialFactory _generateOpaque 1234567890 N/A N/A self clientAddress host N/A exc N/A N/A self assertRaises LoginFailed N/A credentialFactory _verifyOpaque badNonceOpaque N/A challenge N/A nonce N/A N/A self clientAddress host N/A N/A N/A self assertEqual N/A str exc Invalid response, incompatible opaque/nonce values N/A exc N/A N/A self assertRaises LoginFailed N/A credentialFactory _verifyOpaque badNonceOpaque N/A N/A self clientAddress host N/A N/A N/A self assertEqual N/A str exc Invalid response, incompatible opaque/nonce values N/A test_incompatibleClientIP N/A N/A self N/A N/A N/A 
        L{DigestCredentialFactory.decode} raises L{LoginFailed} when the
        request comes from a client IP other than what is encoded in the
        opaque.
         N/A credentialFactory N/A FakeDigestCredentialFactory N/A self algorithm N/A self realm N/A challenge N/A N/A credentialFactory getChallenge N/A N/A self clientAddress host N/A badAddress 10.0.0.1 N/A N/A N/A self assertNotEqual N/A N/A self clientAddress host badAddress N/A badNonceOpaque N/A N/A credentialFactory _generateOpaque N/A challenge N/A nonce badAddress N/A N/A N/A self assertRaises LoginFailed N/A credentialFactory _verifyOpaque badNonceOpaque N/A challenge N/A nonce N/A N/A self clientAddress host N/A test_oldNonce N/A N/A self N/A N/A N/A 
        L{DigestCredentialFactory.decode} raises L{LoginFailed} when the given
        opaque is older than C{DigestCredentialFactory.CHALLENGE_LIFETIME_SECS}
         N/A credentialFactory N/A FakeDigestCredentialFactory N/A self algorithm N/A self realm N/A challenge N/A N/A credentialFactory getChallenge N/A N/A self clientAddress host N/A key N/A %s,%s,%s N/A N/A challenge N/A nonce N/A N/A self clientAddress host -137876876 N/A digest N/A N/A N/A md5 N/A key N/A credentialFactory privateKey hexdigest N/A ekey N/A b64encode key N/A oldNonceOpaque N/A %s-%s N/A digest N/A N/A ekey strip N/A N/A N/A self assertRaises LoginFailed N/A credentialFactory _verifyOpaque oldNonceOpaque N/A challenge N/A nonce N/A N/A self clientAddress host N/A test_mismatchedOpaqueChecksum N/A N/A self N/A N/A N/A 
        L{DigestCredentialFactory.decode} raises L{LoginFailed} when the opaque
        checksum fails verification.
         N/A credentialFactory N/A FakeDigestCredentialFactory N/A self algorithm N/A self realm N/A challenge N/A N/A credentialFactory getChallenge N/A N/A self clientAddress host N/A key N/A %s,%s,%s N/A N/A challenge N/A nonce N/A N/A self clientAddress host 0 N/A digest N/A N/A N/A md5 N/A key this is not the right pkey hexdigest N/A badChecksum N/A %s-%s N/A digest N/A b64encode key N/A N/A N/A self assertRaises LoginFailed N/A credentialFactory _verifyOpaque badChecksum N/A challenge N/A nonce N/A N/A self clientAddress host N/A test_incompatibleCalcHA1Options N/A N/A self N/A N/A N/A 
        L{calcHA1} raises L{TypeError} when any of the pszUsername, pszRealm,
        or pszPassword arguments are specified with the preHA1 keyword
        argument.
         N/A arguments N/A N/A user realm password preHA1 N/A None realm None preHA1 N/A None None password preHA1 N/A N/A pszUsername pszRealm pszPassword preHA1 arguments N/A N/A N/A N/A self assertRaises TypeError calcHA1 md5 pszUsername pszRealm pszPassword nonce cnonce preHA1 preHA1 N/A test_noNewlineOpaque N/A N/A self N/A N/A N/A 
        L{DigestCredentialFactory._generateOpaque} returns a value without
        newlines, regardless of the length of the nonce.
         N/A opaque N/A N/A N/A self credentialFactory _generateOpaque N/A long nonce  10 None N/A N/A N/A self assertNotIn opaque N/A N/A