public class TwoLeggedOAuthHelper
extends java.lang.Object
Constructor and Description |
---|
TwoLeggedOAuthHelper(OAuthSigner signer,
OAuthParameters parameters) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthorizationHeader(java.lang.String requestUrl,
java.lang.String httpMethod)
Generates the string to be used as the HTTP authorization header.
|
public TwoLeggedOAuthHelper(OAuthSigner signer, OAuthParameters parameters)
public java.lang.String getAuthorizationHeader(java.lang.String requestUrl, java.lang.String httpMethod) throws OAuthException
OAuth realm="", oauth_signature="SOME_LONG_STRING", oauth_nonce="123456", oauth_signature_method="RSA-SHA1", oauth_consumer_key="www.example.com", oauth_token="abc123", oauth_timestamp="123456"
The following parameters are required in OAuthParameters
:
requestUrl
- the url of the requesthttpMethod
- the http method of the request (for example GET)OAuthException
- if there is an error with the OAuth request