| java.lang.Object |
| ↳ |
com.google.gdata.client.GoogleAuthTokenFactory.OAuthToken |
Class Overview
Encapsulates the OAuth information used by applications to login on behalf
of a user. This class generates an unique authorization header for each
request.
Summary
| Public Methods |
|
String
|
getAuthorizationHeader(URL requestUrl, String requestMethod)
Generates the OAuth authorization header using the user's OAuth
parameters, the request url and the request method.
|
|
[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)
|
|
From interface
com.google.gdata.client.http.HttpAuthToken
|
abstract
String
|
getAuthorizationHeader(URL requestUrl, String requestMethod)
Returns an authorization header to be used for a HTTP request
for the respective authentication token.
|
|
Fields
Public Constructors
public
GoogleAuthTokenFactory.OAuthToken
(OAuthParameters parameters, OAuthSigner signer)
Parameters
| parameters
| The required OAuth parameters |
| signer
| The OAuthSigner object to use when to generate the
OAuth signature.
|
Public Methods
public
String
getAuthorizationHeader
(URL requestUrl, String requestMethod)
Generates the OAuth authorization header using the user's OAuth
parameters, the request url and the request method.
Parameters
| requestUrl
| The URL being requested |
| requestMethod
| The HTTP method of the request |
Returns
- the authorization header to be used for the request