com.google.api.client.googleapis.auth.oauth
Class GoogleOAuthGetTemporaryToken
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.OAuthGetTemporaryToken
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 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. |
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 |
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.
GoogleOAuthGetTemporaryToken
public GoogleOAuthGetTemporaryToken()
- Deprecated.
createParameters
public OAuthParameters createParameters()
- Deprecated.
- Overrides:
createParameters
in class OAuthGetTemporaryToken
Copyright © 2010-2012 Google. All Rights Reserved.