com.google.api.client.auth.oauth
Class OAuthGetAccessToken
java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.http.GenericUrl
com.google.api.client.auth.oauth.AbstractOAuthGetToken
com.google.api.client.auth.oauth.OAuthGetAccessToken
- All Implemented Interfaces:
- Cloneable, Map<String,Object>
public class OAuthGetAccessToken
- extends AbstractOAuthGetToken
Generic OAuth 1.0a URL to request to exchange the temporary credentials token (or "request
token") for a long-lived credentials token (or "access token") from an authorization server.
Use AbstractOAuthGetToken.execute() to execute the request. The long-lived access token acquired with this
request is found in OAuthCredentialsResponse.token . This token must be stored. It may
then be used to authorize HTTP requests to protected resources by using OAuthParameters.
- Since:
- 1.0
- Author:
- Yaniv Inbar
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class com.google.api.client.http.GenericUrl |
appendRawPath, build, clone, equals, getAll, getFirst, getRawPath, hashCode, setRawPath, toPathParts, toString |
temporaryToken
public String temporaryToken
- Required temporary token. It is retrieved from the
OAuthCredentialsResponse.token
returned from AbstractOAuthGetToken.execute().
verifier
public String verifier
- Required verifier code received from the server when the temporary token was authorized. It is
retrieved from
OAuthCallbackUrl.verifier.
OAuthGetAccessToken
public OAuthGetAccessToken(String authorizationServerUrl)
- Parameters:
authorizationServerUrl - encoded authorization server URL
createParameters
public OAuthParameters createParameters()
- Description copied from class:
AbstractOAuthGetToken
- Returns a new instance of the OAuth authentication provider. Subclasses may override by calling
this super implementation and then adding OAuth parameters.
- Overrides:
createParameters in class AbstractOAuthGetToken
Copyright © 2010-2011 Google. All Rights Reserved.