public class OAuth10aService extends OAuthService
OAuthService
Constructor and Description |
---|
OAuth10aService(DefaultApi10a api,
String apiKey,
String apiSecret,
String callback,
String scope,
OutputStream debugStream,
String userAgent,
HttpClientConfig httpClientConfig,
HttpClient httpClient) |
close, execute, execute, execute, executeAsync, getApiKey, getApiSecret, getCallback, getScope
public OAuth10aService(DefaultApi10a api, String apiKey, String apiSecret, String callback, String scope, OutputStream debugStream, String userAgent, HttpClientConfig httpClientConfig, HttpClient httpClient)
public 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.