Packageorg.igniterealtime.xiff.auth
Classpublic class DigestMD5
InheritanceDigestMD5 Inheritance SASLAuth

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.

See also

http://en.wikipedia.org/wiki/Digest_access_authentication
http://tools.ietf.org/html/rfc1321
http://www.ietf.org/rfc/rfc2831.txt


Public Properties
 PropertyDefined by
 Inheritedrequest : XML
The XML for the authentication request.
SASLAuth
Protected Properties
 PropertyDefined by
 Inheritedreq : XML
The XML of the authentication request.
SASLAuth
 Inheritedresponse : XML
The XML of the challenge response.
SASLAuth
 Inheritedstage : int
The current response stage.
SASLAuth
Public Methods
 MethodDefined by
  
Creates a new External authentication object.
DigestMD5
  
handleChallenge(stage:int, challenge:XML):XML
Called when a challenge to this authentication is received.
DigestMD5
  
handleResponse(stage:int, response:XML):Object
Called when a response to this authentication is received.
DigestMD5
Public Constants
 ConstantDefined by
  MECHANISM : String = "DIGEST-MD5"
[static]
DigestMD5
  NS : String = "urn:ietf:params:xml:ns:xmpp-sasl"
[static]
DigestMD5
Constructor detail
DigestMD5()constructor
public function DigestMD5(connection:XMPPConnection)

Creates a new External authentication object.

Parameters
connection:XMPPConnection — A reference to the XMPPConnection instance in use.
Method detail
handleChallenge()method
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.
handleResponse()method 
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.
Constant detail
MECHANISMconstant
public static const MECHANISM:String = "DIGEST-MD5"
NSconstant 
public static const NS:String = "urn:ietf:params:xml:ns:xmpp-sasl"