Packageorg.igniterealtime.xiff.auth
Classpublic class SASLAuth
SubclassesAnonymous, DigestMD5, External, Plain, XFacebookPlatform

This is a base class for use with Simple Authentication and Security Layer (SASL) mechanisms. Sub-class this class when creating new SASL mechanisms.

See also

http://tools.ietf.org/html/rfc4422
http://en.wikipedia.org/wiki/Simple_Authentication_and_Security_Layer


Public Properties
 PropertyDefined by
  request : XML
[read-only] The XML for the authentication request.
SASLAuth
Protected Properties
 PropertyDefined by
  req : XML
The XML of the authentication request.
SASLAuth
  response : XML
The XML of the challenge response.
SASLAuth
  stage : int
The current response stage.
SASLAuth
Public Methods
 MethodDefined by
  
SASLAuth
  
handleChallenge(stage:int, challenge:XML):XML
Called when a challenge to this authentication is received.
SASLAuth
  
handleResponse(stage:int, response:XML):Object
Called when a response to this authentication is received.
SASLAuth
Property detail
reqproperty
protected var req:XML

The XML of the authentication request.

requestproperty 
request:XML  [read-only]

The XML for the authentication request.

Implementation
    public function get request():XML
responseproperty 
protected var response:XML

The XML of the challenge response.

stageproperty 
protected var stage:int

The current response stage.

Constructor detail
SASLAuth()constructor
public function SASLAuth()
Method detail
handleChallenge()method
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 
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.