Packageorg.igniterealtime.xiff.auth
Classpublic class XFacebookPlatform
InheritanceXFacebookPlatform Inheritance SASLAuth

This class provides SASL authentication using the X-FACEBOOK-PLATFORM mechanism.



Public Properties
 PropertyDefined by
  fb_api_key : String
[static]
XFacebookPlatform
  fb_secret : String
[static]
XFacebookPlatform
  fb_session_key : String
[static]
XFacebookPlatform
 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
  
Creates a new XFacebookPlatform authentication object.
XFacebookPlatform
  
formatSig(map:Dictionary):String
[static] Construct the signature as described by Facebook api documentation.
XFacebookPlatform
  
handleChallenge(stage:int, challenge:XML):XML
Called when a challenge to this authentication is received.
XFacebookPlatform
  
handleResponse(stage:int, response:XML):Object
Called when a response to this authentication is received.
XFacebookPlatform
  
setFacebookSessionValues(api_key:String, secret:String, session_key:String):void
[static]
XFacebookPlatform
Public Constants
 ConstantDefined by
  MECHANISM : String = "X-FACEBOOK-PLATFORM"
[static]
XFacebookPlatform
  NS : String = "urn:ietf:params:xml:ns:xmpp-sasl"
[static]
XFacebookPlatform
Property detail
fb_api_keyproperty
public static var fb_api_key:String
fb_secretproperty 
public static var fb_secret:String
fb_session_keyproperty 
public static var fb_session_key:String
Constructor detail
XFacebookPlatform()constructor
public function XFacebookPlatform(connection:XMPPConnection)

Creates a new XFacebookPlatform authentication object.

Parameters
connection:XMPPConnection — A reference to the XMPPConnection instance in use.
Method detail
formatSig()method
public static function formatSig(map:Dictionary):String

Construct the signature as described by Facebook api documentation.

Parameters
map:Dictionary

Returns
String
handleChallenge()method 
public override 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 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.
setFacebookSessionValues()method 
public static function setFacebookSessionValues(api_key:String, secret:String, session_key:String):voidParameters
api_key:String
 
secret:String
 
session_key:String
Constant detail
MECHANISMconstant
public static const MECHANISM:String = "X-FACEBOOK-PLATFORM"
NSconstant 
public static const NS:String = "urn:ietf:params:xml:ns:xmpp-sasl"