Packageorg.igniterealtime.xiff.auth
Classpublic class DigestMD5
InheritanceDigestMD5 Inheritance SASLAuth Inheritance Object
Implements ISASLAuth

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
http://tools.ietf.org/html/rfc3920#section-6


Public Properties
 PropertyDefined By
 Inheritedrequest : XML
[read-only] The XML for the authentication request.
SASLAuth
Protected Properties
 PropertyDefined By
 Inheritedconnection : IXMPPConnection
Connection that is used to authenticate, if any
SASLAuth
 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
[override] Called when a challenge to this authentication is received.
DigestMD5
  
handleResponse(stage:int, response:XML):Object
[override] Called when a response to this authentication is received.
DigestMD5
Public Constants
 ConstantDefined By
  MECHANISM : String = DIGEST-MD5
[static]
DigestMD5
 InheritedNS : String = urn:ietf:params:xml:ns:xmpp-sasl
[static]
SASLAuth
 InheritedRESPONSE_SUCCESS : String = success
[static]
SASLAuth
Constructor Detail
DigestMD5()Constructor
public function DigestMD5(connection:IXMPPConnection)

Creates a new External authentication object.

Parameters
connection:IXMPPConnection — A reference to the XMPPConnection instance in use.
Method Detail
handleChallenge()method
override public 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 
override public 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