|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.client.GoogleAuthTokenFactory.OAuthToken
public static class GoogleAuthTokenFactory.OAuthToken
Encapsulates the OAuth information used by applications to login on behalf of a user. This class generates an unique authorization header for each request.
Constructor Summary | |
---|---|
GoogleAuthTokenFactory.OAuthToken(OAuthParameters parameters,
OAuthSigner signer)
Create a new GoogleAuthTokenFactory.OAuthToken object. |
Method Summary | |
---|---|
java.lang.String |
getAuthorizationHeader(java.net.URL requestUrl,
java.lang.String requestMethod)
Generates the OAuth authorization header using the user's OAuth parameters, the request url and the request method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GoogleAuthTokenFactory.OAuthToken(OAuthParameters parameters, OAuthSigner signer)
GoogleAuthTokenFactory.OAuthToken
object. Store the
OAuthParameters
and OAuthSigner
to use when generating
the header. The following OAuth parameters are required:
parameters
- the required OAuth parameterssigner
- the OAuthSigner
object to use when to generate the
OAuth signature.Method Detail |
---|
public java.lang.String getAuthorizationHeader(java.net.URL requestUrl, java.lang.String requestMethod)
getAuthorizationHeader
in interface HttpAuthToken
requestUrl
- the URL being requestedrequestMethod
- the HTTP method of the request
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |