Packageorg.igniterealtime.xiff.auth
Classpublic class External
InheritanceExternal Inheritance SASLAuth Inheritance Object
Implements ISASLAuth

This class provides SASL authentication using the EXTERNAL mechanism. This is particularly useful when TLS authentication is required.

See also

http://xmpp.org/extensions/xep-0178.html
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.
External
 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.
External
Public Constants
 ConstantDefined By
  MECHANISM : String = EXTERNAL
[static]
External
 InheritedNS : String = urn:ietf:params:xml:ns:xmpp-sasl
[static]
SASLAuth
 InheritedRESPONSE_SUCCESS : String = success
[static]
SASLAuth
Constructor Detail
External()Constructor
public function External(connection:IXMPPConnection)

Creates a new External 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 = EXTERNAL