This class provides SASL authentication using the DIGEST-MD5 mechanism, a HTTP Digest
compatible challenge-response scheme based upon MD5. DIGEST-MD5 offers a data security layer.
public function DigestMD5(connection:XMPPConnection)
Creates a new External authentication object.
Parameters
| connection:XMPPConnection — A reference to the XMPPConnection instance in use.
|
public override function handleChallenge(stage:int, challenge:XML):XML
Called when a challenge to this authentication is received.
Parameters
| stage:int — The current stage in the authentication process.
|
|
| challenge:XML — The XML of the actual authentication challenge.
|
Returns
| XML — The XML response to the challenge.
|
public override function handleResponse(stage:int, response:XML):Object
Called when a response to this authentication is received.
Parameters
| stage:int — The current stage in the authentication process.
|
|
| response:XML — The XML of the actual authentication response.
|
Returns
| Object — An object specifying the current state of the authentication.
|
public static const MECHANISM:String = "DIGEST-MD5"
public static const NS:String = "urn:ietf:params:xml:ns:xmpp-sasl"