Google Data APIs Client Library (1.41.1)



com.google.gdata.client
Class GoogleAuthTokenFactory.UserToken

java.lang.Object
  extended by 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.


Constructor Summary
GoogleAuthTokenFactory.UserToken(java.lang.String token)
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleAuthTokenFactory.UserToken

public GoogleAuthTokenFactory.UserToken(java.lang.String token)
Method Detail

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 requested
requestMethod - the HTTP method of the request
Returns:
the "Authorization" header to be used for the request