Package | org.igniterealtime.xiff.auth |
Class | public class XOAuth2 |
Inheritance | XOAuth2 ![]() ![]() |
Implements | ISASLAuth |
See also
Method | Defined By | ||
---|---|---|---|
XOAuth2(connection:IXMPPConnection)
Creates a OAuth v2 authentication object. | XOAuth2 | ||
handleChallenge(stage:int, challenge:XML):XML [override]
Called when a challenge to this authentication is received. | XOAuth2 | ||
handleResponse(stage:int, response:XML):Object [override]
Called when a response to this authentication is received. | XOAuth2 |
Constant | Defined By | ||
---|---|---|---|
MECHANISM : String = X-OAUTH2 [static] | XOAuth2 | ||
NS : String = urn:ietf:params:xml:ns:xmpp-sasl [static] | XOAuth2 | ||
![]() | RESPONSE_SUCCESS : String = success [static] | SASLAuth |
XOAuth2 | () | Constructor |
public function XOAuth2(connection:IXMPPConnection)
Creates a OAuth v2 authentication object.
Parametersconnection:IXMPPConnection — A reference to the XMPPConnection instance in use.
|
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.
|
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.
|
Object — An object specifying the current state of the authentication.
|
MECHANISM | Constant |
public static const MECHANISM:String = X-OAUTH2
NS | Constant |
public static const NS:String = urn:ietf:params:xml:ns:xmpp-sasl