Class jabberwerx.SASLDigestMd5Mechanism (MINIMAL)
Extends
jabberwerx.SASLMechanism.
Implements the DIGEST-MD5 SASL mechanism.
Constructor Attributes | Constructor Name and Description |
---|---|
Creates a new SASLDigestMd5Mechanism with the given client.
|
- Fields borrowed from class jabberwerx.SASLMechanism:
- client, complete, mechanismName, started
Method Attributes | Method Name and Description |
---|---|
evaluateChallenge(inb)
Called by jabberwerx.SASLMechanism#evaluate to process a challenge. |
|
Called by jabberwerx.SASLMechanism#evaluate to generate initial data.
|
- Methods borrowed from class jabberwerx.SASLMechanism:
- evaluate, getProperties
- Methods borrowed from class jabberwerx.JWBase:
- destroy, getClassName, graphUnserialized, init, invocation, shouldBeSavedWithGraph, shouldBeSerializedInline, toString, wasUnserialized, willBeSerialized
Class Detail
jabberwerx.SASLDigestMd5Mechanism(client)
Creates a new SASLDigestMd5Mechanism with the given client.
- Parameters:
- {jabberwerx.Client} client
- The client
- Throws:
- {TypeError}
- If {client} is not valid
Method Detail
{String}
evaluateChallenge(inb)
Called by jabberwerx.SASLMechanism#evaluate to process a challenge. This implementation follows RFC 2831's flow, which is two steps:
- DIGEST: Performs the actual digest calculations
- VERIFY: Verifies the auth response from the server
- Parameters:
- {String} inb
- The challenge data, decoded from Base64
- Returns:
- {String} The response data
{String}
evaluateStart()
Called by jabberwerx.SASLMechanism#evaluate to generate initial data. This method
sets up the staging methods for subsequenct steps.
- Returns:
- {String} null