com.google.api.client.googleapis.auth.oauth
Class GoogleOAuthGetAccessToken

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.http.GenericUrl
              extended by com.google.api.client.auth.oauth.AbstractOAuthGetToken
                  extended by com.google.api.client.auth.oauth.OAuthGetAccessToken
                      extended by com.google.api.client.googleapis.auth.oauth.GoogleOAuthGetAccessToken
All Implemented Interfaces:
Cloneable, Map<String,Object>

Deprecated. (scheduled to be removed in 1.9) 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 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
 
Fields inherited from class com.google.api.client.auth.oauth.OAuthGetAccessToken
temporaryToken, verifier
 
Fields inherited from class com.google.api.client.auth.oauth.AbstractOAuthGetToken
consumerKey, signer, transport, usePost
 
Constructor Summary
GoogleOAuthGetAccessToken()
          Deprecated.  
 
Method Summary
static void revokeAccessToken(HttpTransport transport, OAuthParameters parameters)
          Deprecated. Revokes the long-lived access token.
 
Methods inherited from class com.google.api.client.auth.oauth.OAuthGetAccessToken
createParameters
 
Methods inherited from class com.google.api.client.auth.oauth.AbstractOAuthGetToken
execute
 
Methods inherited from class com.google.api.client.http.GenericUrl
appendRawPath, build, clone, equals, getAll, getFirst, getFragment, getHost, getPathParts, getPort, getRawPath, getScheme, hashCode, setFragment, setHost, setPathParts, setPort, setRawPath, setScheme, toPathParts, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GoogleOAuthGetAccessToken

public GoogleOAuthGetAccessToken()
Deprecated. 
Method Detail

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.