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

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.OAuthGetTemporaryToken
                      extended by com.google.api.client.googleapis.auth.oauth.GoogleOAuthGetTemporaryToken
All Implemented Interfaces:
Cloneable, Map<String,Object>

Deprecated. (scheduled to be removed in 1.9) Use GoogleAuthorizationCodeTokenRequest

@Deprecated
public final class GoogleOAuthGetTemporaryToken
extends OAuthGetTemporaryToken

Generic Google OAuth 1.0a URL to request a temporary credentials token (or "request token") from the Google Authorization server.

Use AbstractOAuthGetToken.execute() to execute the request. Google verifies that the requesting application has been registered with Google or is using an approved signature (in the case of installed applications). The temporary token acquired with this request is found in OAuthCredentialsResponse.token . This temporary token is used in OAuthAuthorizeTemporaryTokenUrl.temporaryToken to direct the end user to a Google Accounts web page to allow the end user to authorize the temporary token.

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
 String displayName
          Deprecated. Optional string identifying the application or null for none.
 String scope
          Deprecated. Required URL identifying the service(s) to be accessed.
 
Fields inherited from class com.google.api.client.auth.oauth.OAuthGetTemporaryToken
callback
 
Fields inherited from class com.google.api.client.auth.oauth.AbstractOAuthGetToken
consumerKey, signer, transport, usePost
 
Constructor Summary
GoogleOAuthGetTemporaryToken()
          Deprecated.  
 
Method Summary
 OAuthParameters createParameters()
          Deprecated.  
 
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
 

Field Detail

displayName

public String displayName
Deprecated. 
Optional string identifying the application or null for none. This string is displayed to end users on Google's authorization confirmation page. For registered applications, the value of this parameter overrides the name set during registration and also triggers a message to the user that the identity can't be verified. For unregistered applications, this parameter enables them to specify an application name, In the case of unregistered applications, if this parameter is not set, Google identifies the application using the URL value of oauth_callback; if neither parameter is set, Google uses the string "anonymous".


scope

public String scope
Deprecated. 
Required URL identifying the service(s) to be accessed. The resulting token enables access to the specified service(s) only. Scopes are defined by each Google service; see the service's documentation for the correct value. To specify more than one scope, list each one separated with a space.

Constructor Detail

GoogleOAuthGetTemporaryToken

public GoogleOAuthGetTemporaryToken()
Deprecated. 
Method Detail

createParameters

public OAuthParameters createParameters()
Deprecated. 
Overrides:
createParameters in class OAuthGetTemporaryToken


Copyright © 2010-2012 Google. All Rights Reserved.