Class Index | Minimal

Classes


Class jabberwerx.SASLDigestMd5Mechanism (MINIMAL)


Extends jabberwerx.SASLMechanism.

Implements the DIGEST-MD5 SASL mechanism.

Class Summary
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 Summary
Method Attributes Method Name and Description
 

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:

  1. DIGEST: Performs the actual digest calculations
  2. 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

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 02 2014 13:23:42 GMT-0600 (MDT)