com.google.api.client.auth.oauth2.draft10
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.draft10.AccessTokenResponse
All Implemented Interfaces:
Cloneable, Map<String,Object>

public class AccessTokenResponse
extends GenericData

OAuth 2.0 (draft 10) access token success response content as specified in Access Token Response.

Use AccessProtectedResource to authorize executed HTTP requests based on the accessToken.

Since:
1.4
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
          (REQUIRED) The access token issued by the authorization server.
 Long expiresIn
          (OPTIONAL) The duration in seconds of the access token lifetime.
 String refreshToken
          (OPTIONAL) The refresh token used to obtain new access tokens.
 String scope
          (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()
           
 
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
(REQUIRED) The access token issued by the authorization server.


expiresIn

public Long expiresIn
(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
(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
(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()


Copyright © 2010-2011 Google. All Rights Reserved.