Packageorg.igniterealtime.xiff.auth
Classpublic class Plain
InheritancePlain Inheritance SASLAuth Inheritance Object
Implements ISASLAuth

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

See also

http://tools.ietf.org/html/rfc4616
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 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
[override] Called when a response to this authentication is received.
Plain
Public Constants
 ConstantDefined By
  MECHANISM : String = PLAIN
[static]
Plain
 InheritedNS : String = urn:ietf:params:xml:ns:xmpp-sasl
[static]
SASLAuth
 InheritedRESPONSE_SUCCESS : String = success
[static]
SASLAuth
Constructor Detail
Plain()Constructor
public function Plain(connection:IXMPPConnection)

Creates a new Plain authentication object.

Parameters
connection:IXMPPConnection
Method Detail
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 = PLAIN