t.w.p.j.s.DigestMD5(object) : class documentation

Part of twisted.words.protocols.jabber.sasl_mechanisms View Source View In Hierarchy

Implements interfaces: twisted.words.protocols.jabber.sasl_mechanisms.ISASLMechanism

Implements the DIGEST-MD5 SASL authentication mechanism.

The DIGEST-MD5 SASL authentication mechanism is defined in RFC 2831.

Method __init__ Undocumented
Method getInitialResponse Get the initial client response, if defined for this mechanism.
Method getResponse Get the response to a server challenge.
Method _parse Parses the server challenge.
Method _unparse Create message string from directives.
Method _gen_response Generate response-value.
Method _gen_nonce Undocumented
def __init__(self, serv_type, host, serv_name, username, password): (source)
Undocumented
def getInitialResponse(self): (source)
Get the initial client response, if defined for this mechanism.
Returnsinitial client response string. (type: str.)
def getResponse(self, challenge): (source)
Get the response to a server challenge.
Parameterschallengeserver challenge. (type: str.)
Returnsclient response. (type: str.)
def _parse(self, challenge): (source)
Parses the server challenge.

Splits the challenge into a dictionary of directives with values.

Returnschallenge directives and their values. (type: dict of str to str.)
def _unparse(self, directives): (source)
Create message string from directives.
Parametersdirectivesdictionary of directives (names to their values). For certain directives, extra quotes are added, as needed. (type: dict of str to str)
Returnsmessage string. (type: str.)
def _gen_response(self, charset, realm, nonce): (source)
Generate response-value.

Creates a response to a challenge according to section 2.1.2.1 of RFC 2831 using the charset, realm and nonce directives from the challenge.

def _gen_nonce(self): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2012-06-04 17:20:01.