public class OAuth10aService extends OAuthService<OAuth1AccessToken>
OAuthService| Constructor and Description |
|---|
OAuth10aService(DefaultApi10a api,
OAuthConfig config)
Default constructor
|
closeAsyncClient, executeAsync, getConfigpublic OAuth10aService(DefaultApi10a api, OAuthConfig config)
api - OAuth1.0a api informationconfig - OAuth 1.0a configuration param objectpublic final OAuth1RequestToken getRequestToken() throws IOException
IOExceptionpublic final Future<OAuth1RequestToken> getRequestTokenAsync(OAuthAsyncRequestCallback<OAuth1RequestToken> callback)
protected void prepareRequestTokenRequest(AbstractRequest request)
public final OAuth1AccessToken getAccessToken(OAuth1RequestToken requestToken, String oauthVerifier) throws IOException
IOExceptionpublic final Future<OAuth1AccessToken> getAccessTokenAsync(OAuth1RequestToken requestToken, String oauthVerifier, OAuthAsyncRequestCallback<OAuth1AccessToken> callback)
requestToken - request token (obtained previously or null)oauthVerifier - oauth_verifiercallback - optional callbackprotected void prepareAccessTokenRequest(AbstractRequest request, OAuth1RequestToken requestToken, String oauthVerifier)
public void signRequest(OAuth1AccessToken token, AbstractRequest request)
signRequest in class OAuthService<OAuth1AccessToken>public String getVersion()
OAuthServicegetVersion in class OAuthService<OAuth1AccessToken>public String getAuthorizationUrl(OAuth1RequestToken requestToken)
requestToken - the request token you need to authorizepublic DefaultApi10a getApi()
Copyright © 2016. All rights reserved.