com.google.api.client.auth.oauth2
Class AccessTokenResponse

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.auth.oauth2.AccessTokenResponse
All Implemented Interfaces:
Cloneable, Map<String,Object>

Deprecated. (scheduled to be removed in 1.5) Use AccessTokenResponse

@Deprecated
public class AccessTokenResponse
extends GenericData

OAuth 2.0 access token success response content as specified in Access Token Response.

Use AccessProtectedResource to authorize executed HTTP requests based on the accessToken, for example AccessProtectedResource. usingAuthorizationHeader(transport, response.accessToken).

Since:
1.2
Author:
Yaniv Inbar

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 String accessToken
          Deprecated. (REQUIRED) The access token issued by the authorization server.
 Long expiresIn
          Deprecated. (OPTIONAL) The duration in seconds of the access token lifetime.
 String refreshToken
          Deprecated. (OPTIONAL) The refresh token used to obtain new access tokens.
 String scope
          Deprecated. (OPTIONAL) The scope of the access token as a list of space- delimited strings.
 
Fields inherited from class com.google.api.client.util.GenericData
unknownFields
 
Constructor Summary
AccessTokenResponse()
          Deprecated.  
 
Method Summary
 
Methods inherited from class com.google.api.client.util.GenericData
clone, entrySet, get, put, putAll, remove, set
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

accessToken

public String accessToken
Deprecated. 
(REQUIRED) The access token issued by the authorization server.


expiresIn

public Long expiresIn
Deprecated. 
(OPTIONAL) The duration in seconds of the access token lifetime. For example, the value "3600" denotes that the access token will expire in one hour from the time the response was generated by the authorization server.


refreshToken

public String refreshToken
Deprecated. 
(OPTIONAL) The refresh token used to obtain new access tokens. The authorization server SHOULD NOT issue a refresh token when the access grant type is set to "none".


scope

public String scope
Deprecated. 
(OPTIONAL) The scope of the access token as a list of space- delimited strings. The value of the "scope" parameter is defined by the authorization server. If the value contains multiple space-delimited strings, their order does not matter, and each string adds an additional access range to the requested scope. The authorization server SHOULD include the parameter if the requested scope is different from the one requested by the client.

Constructor Detail

AccessTokenResponse

public AccessTokenResponse()
Deprecated. 


Copyright © 2010-2011 Google. All Rights Reserved.