Package com.twitter.clientlib.auth
Class TwitterApiKeyOAuth
- java.lang.Object
-
- com.twitter.clientlib.auth.TwitterApiKeyOAuth
-
- All Implemented Interfaces:
Authentication
public class TwitterApiKeyOAuth extends Object implements Authentication
-
-
Constructor Summary
Constructors Constructor Description TwitterApiKeyOAuth()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyToParams(String path, String method, List<Pair> inputQueryParams, Map<String,String> headerParams, Map<String,String> cookieParams)Apply authentication settings to header and query params.StringgetConsumerKey()StringgetConsumerSecret()StringgetToken()StringgetTokenSecret()voidsetConsumerKey(String consumerKey)voidsetConsumerSecret(String consumerSecret)voidsetToken(String token)voidsetTokenSecret(String tokenSecret)
-
-
-
Method Detail
-
setConsumerKey
public void setConsumerKey(String consumerKey)
-
setConsumerSecret
public void setConsumerSecret(String consumerSecret)
-
setToken
public void setToken(String token)
-
setTokenSecret
public void setTokenSecret(String tokenSecret)
-
getConsumerKey
public String getConsumerKey()
-
getConsumerSecret
public String getConsumerSecret()
-
getToken
public String getToken()
-
getTokenSecret
public String getTokenSecret()
-
applyToParams
public void applyToParams(String path, String method, List<Pair> inputQueryParams, Map<String,String> headerParams, Map<String,String> cookieParams)
Description copied from interface:AuthenticationApply authentication settings to header and query params.- Specified by:
applyToParamsin interfaceAuthenticationinputQueryParams- List of query parametersheaderParams- Map of header parameterscookieParams- Map of cookie parameters
-
-