com.google.api.client.auth.oauth
Class OAuthGetTemporaryToken
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
- All Implemented Interfaces:
- Cloneable, Map<String,Object>
public class OAuthGetTemporaryToken
- extends AbstractOAuthGetToken
Generic OAuth 1.0a URL to request a temporary credentials token (or "request token") from an
authorization server.
Use AbstractOAuthGetToken.execute() to execute the request. 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 an authorization
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 |
callback
Optional absolute URI back to which the server will redirect the resource owner when the
Resource Owner Authorization step is completed or null for none. |
| Methods inherited from class com.google.api.client.http.GenericUrl |
appendRawPath, build, clone, equals, getAll, getFirst, getRawPath, hashCode, setRawPath, toPathParts, toString |
callback
public String callback
- Optional absolute URI back to which the server will redirect the resource owner when the
Resource Owner Authorization step is completed or
null for none.
OAuthGetTemporaryToken
public OAuthGetTemporaryToken(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.