com.google.gdata.client
Class GoogleAuthTokenFactory.UserToken
java.lang.Object
com.google.gdata.client.GoogleAuthTokenFactory.UserToken
- All Implemented Interfaces:
- AuthTokenFactory.AuthToken, HttpAuthToken
- Enclosing class:
- GoogleAuthTokenFactory
public static class GoogleAuthTokenFactory.UserToken
- extends java.lang.Object
- implements HttpAuthToken
The UserToken encapsulates the token retrieved as a result of
authenticating to Google using a user's credentials.
Method Summary |
java.lang.String |
getAuthorizationHeader(java.net.URL requestUrl,
java.lang.String requestMethod)
Returns an authorization header to be used for a HTTP request
for the respective authentication token. |
java.lang.String |
getValue()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GoogleAuthTokenFactory.UserToken
public GoogleAuthTokenFactory.UserToken(java.lang.String token)
getValue
public java.lang.String getValue()
getAuthorizationHeader
public java.lang.String getAuthorizationHeader(java.net.URL requestUrl,
java.lang.String requestMethod)
- Returns an authorization header to be used for a HTTP request
for the respective authentication token.
- Specified by:
getAuthorizationHeader
in interface HttpAuthToken
- Parameters:
requestUrl
- the URL being requestedrequestMethod
- the HTTP method of the request
- Returns:
- the "Authorization" header to be used for the request