com.google.api.client.auth.oauth2.draft10
Class AccessTokenResponse
java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
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 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. |
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.
AccessTokenResponse
public AccessTokenResponse()
Copyright © 2010-2011 Google. All Rights Reserved.