com.google.api.client.googleapis.auth.oauth
Class GoogleOAuthGetAccessToken
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
com.google.api.client.googleapis.auth.oauth.GoogleOAuthGetAccessToken
- All Implemented Interfaces:
- Cloneable, Map<String,Object>
Deprecated. (scheduled to be removed in 1.11) Use
GoogleAuthorizationCodeTokenRequest
@Deprecated
public final class GoogleOAuthGetAccessToken
- extends OAuthGetAccessToken
Generic Google 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 the Google 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 in Google services by using
OAuthParameters.
To revoke the stored access token, use revokeAccessToken(com.google.api.client.http.HttpTransport, com.google.api.client.auth.oauth.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, buildAuthority, buildRelativeUrl, clone, equals, getAll, getFirst, getFragment, getHost, getPathParts, getPort, getRawPath, getScheme, hashCode, setFragment, setHost, setPathParts, setPort, setRawPath, setScheme, toPathParts, toString |
GoogleOAuthGetAccessToken
public GoogleOAuthGetAccessToken()
- Deprecated.
revokeAccessToken
public static void revokeAccessToken(HttpTransport transport,
OAuthParameters parameters)
throws IOException
- Deprecated.
- Revokes the long-lived access token.
- Parameters:
parameters - OAuth parameters
- Throws:
IOException - I/O exception- Since:
- 1.3
Copyright © 2010-2012 Google. All Rights Reserved.