public class OAuth10aService extends OAuthService
OAuthService
Constructor and Description |
---|
OAuth10aService(DefaultApi10a api,
OAuthConfig config)
Default constructor
|
close, execute, execute, execute, executeAsync, getConfig
public OAuth10aService(DefaultApi10a api, OAuthConfig config)
api
- OAuth1.0a api informationconfig
- OAuth 1.0a configuration param objectpublic OAuth1RequestToken getRequestToken() throws IOException, InterruptedException, ExecutionException
public Future<OAuth1RequestToken> getRequestTokenAsync()
public Future<OAuth1RequestToken> getRequestTokenAsync(OAuthAsyncRequestCallback<OAuth1RequestToken> callback)
protected OAuthRequest prepareRequestTokenRequest()
protected void addOAuthParams(OAuthRequest request, String tokenSecret)
public OAuth1AccessToken getAccessToken(OAuth1RequestToken requestToken, String oauthVerifier) throws IOException, InterruptedException, ExecutionException
public Future<OAuth1AccessToken> getAccessTokenAsync(OAuth1RequestToken requestToken, String oauthVerifier)
public 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)
public String getVersion()
OAuthService
getVersion
in class OAuthService
public String getAuthorizationUrl(OAuth1RequestToken requestToken)
requestToken
- the request token you need to authorizeprotected void appendSignature(OAuthRequest request)
public DefaultApi10a getApi()
Copyright © 2018. All rights reserved.