| java.lang.Object |
| ↳ |
com.google.gdata.client.authn.oauth.TwoLeggedOAuthHelper |
Class Overview
Provides common OAuth message signing and Authorization header
functionality.
Summary
| Public Methods |
|
String
|
getAuthorizationHeader(String requestUrl, String httpMethod)
Generates the string to be used as the HTTP authorization header.
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Fields
Public Constructors
Public Methods
public
String
getAuthorizationHeader
(String requestUrl, String httpMethod)
Generates the string to be used as the HTTP authorization header. A
typical authorization header will look something like this:
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:
- oauth_consumer_key
- oauth_token
- oauth_token_secret (if signing with HMAC)
Parameters
| requestUrl
| The url of the request |
| httpMethod
| The http method of the request (for example GET) |
Returns
- the full authorization header