public static class

GoogleAuthTokenFactory.AuthSubToken

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

Class Overview

Encapsulates the token used by web applications to login on behalf of a user.

Summary

Fields
private PrivateKey key
private String token
Public Constructors
GoogleAuthTokenFactory.AuthSubToken(String token, PrivateKey key)
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 PrivateKey key

private String token

Public Constructors

public GoogleAuthTokenFactory.AuthSubToken (String token, PrivateKey key)

Parameters
token
key

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 ()