Packageorg.igniterealtime.xiff.auth
Classpublic class Plain
InheritancePlain Inheritance SASLAuth

This class provides SASL authentication using the PLAIN mechanism. This is used for plain text password authentication with an XMPP server.

See also

http://tools.ietf.org/html/rfc4616


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
  
Plain(connection:XMPPConnection)
Creates a new Plain authentication object.
Plain
 Inherited
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.
Plain
Public Constants
 ConstantDefined by
  MECHANISM : String = "PLAIN"
[static]
Plain
  NS : String = "urn:ietf:params:xml:ns:xmpp-sasl"
[static]
Plain
Constructor detail
Plain()constructor
public function Plain(connection:XMPPConnection)

Creates a new Plain authentication object.

Parameters
connection:XMPPConnection — A reference to the XMPPConnection instance in use.
Method detail
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 = "PLAIN"
NSconstant 
public static const NS:String = "urn:ietf:params:xml:ns:xmpp-sasl"