public class GoogleOAuth2Credentials extends Object implements XmppCredentials, CallbackHandler
| Constructor and Description |
|---|
GoogleOAuth2Credentials(String username,
String clientID,
String clientSecret,
String accessToken,
String refreshToken) |
GoogleOAuth2Credentials(String username,
String clientID,
String clientSecret,
String accessToken,
String refreshToken,
String resource) |
| Modifier and Type | Method and Description |
|---|---|
org.jivesoftware.smack.XMPPConnection |
createConnection(org.jivesoftware.smack.ConnectionConfiguration config) |
String |
getKey() |
String |
getUsername() |
void |
handle(Callback[] callbacks) |
void |
login(org.jivesoftware.smack.XMPPConnection conn) |
String |
toString() |
public GoogleOAuth2Credentials(String username, String clientID, String clientSecret, String accessToken, String refreshToken)
public String getUsername()
getUsername in interface XmppCredentialspublic String getKey()
getKey in interface XmppCredentialspublic org.jivesoftware.smack.XMPPConnection createConnection(org.jivesoftware.smack.ConnectionConfiguration config)
createConnection in interface XmppCredentialspublic void login(org.jivesoftware.smack.XMPPConnection conn)
throws org.jivesoftware.smack.XMPPException
login in interface XmppCredentialsorg.jivesoftware.smack.XMPPExceptionpublic void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle in interface CallbackHandlerIOExceptionUnsupportedCallbackExceptionCopyright © 2013 LittleShoot. All Rights Reserved.