public class OAuth1aHeaders
extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HEADER_AUTH_CREDENTIALS |
static String |
HEADER_AUTH_SERVICE_PROVIDER |
| Constructor and Description |
|---|
OAuth1aHeaders() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthorizationHeader(TwitterAuthConfig authConfig,
TwitterAuthToken authToken,
String callback,
String method,
String url,
Map<String,String> postParams)
Gets authorization header for inclusion in HTTP request headers.
|
Map<String,String> |
getOAuthEchoHeaders(TwitterAuthConfig authConfig,
TwitterAuthToken authToken,
String callback,
String method,
String url,
Map<String,String> postParams) |
public static final String HEADER_AUTH_SERVICE_PROVIDER
public static final String HEADER_AUTH_CREDENTIALS
public String getAuthorizationHeader(TwitterAuthConfig authConfig, TwitterAuthToken authToken, String callback, String method, String url, Map<String,String> postParams)
authConfig - The auth config.authToken - The auth token to use to sign the request.callback - The callback url.method - The HTTP method.url - The url.postParams - The post parameters.public Map<String,String> getOAuthEchoHeaders(TwitterAuthConfig authConfig, TwitterAuthToken authToken, String callback, String method, String url, Map<String,String> postParams)
authConfig - The auth config.authToken - The auth token to use.callback - The callback url.method - The HTTP method (GET, POST, PUT, DELETE, etc).url - The url delegation should be sent to (e.g. https://api.twitter.com/1.1/account/verify_credentials.json).postParams - The post parameters.