public static class

GoogleAuthTokenFactory.UserToken

extends Object
implements HttpAuthToken
java.lang.Object
   ↳ com.google.gdata.client.GoogleAuthTokenFactory.UserToken

Class Overview

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

Summary

Fields
private String token
Public Constructors
GoogleAuthTokenFactory.UserToken(String token)
Public Methods
String getAuthorizationHeader(URL requestUrl, String requestMethod)
Returns an authorization header to be used for a HTTP request for the respective authentication token.
String getValue()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gdata.client.http.HttpAuthToken

Fields

private String token

Public Constructors

public GoogleAuthTokenFactory.UserToken (String token)

Parameters
token

Public Methods

public String getAuthorizationHeader (URL requestUrl, String requestMethod)

Returns an authorization header to be used for a HTTP request for the respective authentication token.

Parameters
requestUrl The URL being requested
requestMethod The HTTP method of the request
Returns
  • the "Authorization" header to be used for the request

public String getValue ()