org.littleshoot.commom.xmpp
Class SASLFacebookMechanism
java.lang.Object
org.jivesoftware.smack.sasl.SASLMechanism
org.littleshoot.commom.xmpp.SASLFacebookMechanism
- All Implemented Interfaces:
- CallbackHandler
public class SASLFacebookMechanism
- extends org.jivesoftware.smack.sasl.SASLMechanism
| 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 |
| Fields inherited from class org.jivesoftware.smack.sasl.SASLMechanism |
authenticationId, hostname, password, sc |
| 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 |
NAME
public static String NAME
SASLFacebookMechanism
public SASLFacebookMechanism(org.jivesoftware.smack.SASLAuthentication arg0)
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.