public class OAuth10aService extends OAuthService<OAuth1AccessToken>
OAuthService| Constructor and Description |
|---|
OAuth10aService(DefaultApi10a api,
OAuthConfig config)
Default constructor
|
close, execute, execute, execute, executeAsync, getConfigpublic OAuth10aService(DefaultApi10a api, OAuthConfig config)
api - OAuth1.0a api informationconfig - OAuth 1.0a configuration param objectpublic final OAuth1RequestToken getRequestToken() throws IOException, InterruptedException, ExecutionException
public final Future<OAuth1RequestToken> getRequestTokenAsync()
public final Future<OAuth1RequestToken> getRequestTokenAsync(OAuthAsyncRequestCallback<OAuth1RequestToken> callback)
protected OAuthRequest prepareRequestTokenRequest()
protected void addOAuthParams(OAuthRequest request, String tokenSecret)
public final OAuth1AccessToken getAccessToken(OAuth1RequestToken requestToken, String oauthVerifier) throws IOException, InterruptedException, ExecutionException
public final Future<OAuth1AccessToken> getAccessTokenAsync(OAuth1RequestToken requestToken, String oauthVerifier)
public final Future<OAuth1AccessToken> getAccessTokenAsync(OAuth1RequestToken requestToken, String oauthVerifier, OAuthAsyncRequestCallback<OAuth1AccessToken> callback)
requestToken - request token (obtained previously or null)oauthVerifier - oauth_verifiercallback - optional callbackprotected OAuthRequest prepareAccessTokenRequest(OAuth1RequestToken requestToken, String oauthVerifier)
public void signRequest(OAuth1AccessToken token, OAuthRequest 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 authorizeprotected void appendSignature(OAuthRequest request)
public DefaultApi10a getApi()
Copyright © 2017. All rights reserved.