org.littleshoot.commom.xmpp
Class SASLFacebookMechanism

java.lang.Object
  extended by org.jivesoftware.smack.sasl.SASLMechanism
      extended by org.littleshoot.commom.xmpp.SASLFacebookMechanism
All Implemented Interfaces:
CallbackHandler

public class SASLFacebookMechanism
extends org.jivesoftware.smack.sasl.SASLMechanism


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jivesoftware.smack.sasl.SASLMechanism
org.jivesoftware.smack.sasl.SASLMechanism.AuthMechanism, org.jivesoftware.smack.sasl.SASLMechanism.Challenge, org.jivesoftware.smack.sasl.SASLMechanism.Failure, org.jivesoftware.smack.sasl.SASLMechanism.Response, org.jivesoftware.smack.sasl.SASLMechanism.Success
 
Field Summary
static String NAME
           
 
Fields inherited from class org.jivesoftware.smack.sasl.SASLMechanism
authenticationId, hostname, password, sc
 
Constructor Summary
SASLFacebookMechanism(org.jivesoftware.smack.SASLAuthentication arg0)
           
 
Method Summary
protected  void authenticate()
           
 void authenticate(String username, String host, CallbackHandler cbh)
           
 void authenticate(String apiKeyAndSessionKey, String host, String sessionSecret)
           
 void challengeReceived(String challenge)
           
protected  String getName()
           
 
Methods inherited from class org.jivesoftware.smack.sasl.SASLMechanism
authenticate, getSASLAuthentication, handle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static String NAME
Constructor Detail

SASLFacebookMechanism

public SASLFacebookMechanism(org.jivesoftware.smack.SASLAuthentication arg0)
Method Detail

authenticate

protected void authenticate()
                     throws IOException,
                            org.jivesoftware.smack.XMPPException
Overrides:
authenticate in class org.jivesoftware.smack.sasl.SASLMechanism
Throws:
IOException
org.jivesoftware.smack.XMPPException

authenticate

public void authenticate(String apiKeyAndSessionKey,
                         String host,
                         String sessionSecret)
                  throws IOException,
                         org.jivesoftware.smack.XMPPException
Overrides:
authenticate in class org.jivesoftware.smack.sasl.SASLMechanism
Throws:
IOException
org.jivesoftware.smack.XMPPException

authenticate

public void authenticate(String username,
                         String host,
                         CallbackHandler cbh)
                  throws IOException,
                         org.jivesoftware.smack.XMPPException
Overrides:
authenticate in class org.jivesoftware.smack.sasl.SASLMechanism
Throws:
IOException
org.jivesoftware.smack.XMPPException

getName

protected String getName()
Specified by:
getName in class org.jivesoftware.smack.sasl.SASLMechanism

challengeReceived

public void challengeReceived(String challenge)
                       throws IOException
Overrides:
challengeReceived in class org.jivesoftware.smack.sasl.SASLMechanism
Throws:
IOException


Copyright © 2014 LittleShoot. All Rights Reserved.