com.google.gdata.client
Class GoogleService.UserToken

java.lang.Object
  extended by com.google.gdata.client.GoogleService.UserToken
All Implemented Interfaces:
HttpGDataRequest.AuthToken
Enclosing class:
GoogleService

public static class GoogleService.UserToken
extends java.lang.Object
implements HttpGDataRequest.AuthToken

The UserToken encapsulates the token retrieved as a result of authenticating to Google using a user's credentials.


Constructor Summary
GoogleService.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleService.UserToken

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

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 HttpGDataRequest.AuthToken
Parameters:
requestUrl - the URL being requested
requestMethod - the HTTP method of the request
Returns:
the "Authorization" header to be used for the request