@Beta public class OAuthGetAccessToken extends AbstractOAuthGetToken
Beta
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 by using OAuthParameters.
com.google.api.client.util.GenericData.Flags| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
temporaryToken
Required temporary token.
|
java.lang.String |
verifier
Required verifier code received from the server when the temporary token was authorized.
|
consumerKey, signer, transport, usePost| Constructor and Description |
|---|
OAuthGetAccessToken(java.lang.String authorizationServerUrl) |
| Modifier and Type | Method and Description |
|---|---|
OAuthParameters |
createParameters()
Returns a new instance of the OAuth authentication provider.
|
executeappendRawPath, build, buildAuthority, buildRelativeUrl, clone, equals, getAll, getFirst, getFragment, getHost, getPathParts, getPort, getRawPath, getScheme, getUserInfo, hashCode, set, setFragment, setHost, setPathParts, setPort, setRawPath, setScheme, setUserInfo, toPathParts, toString, toURI, toURL, toURLentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuespublic java.lang.String temporaryToken
OAuthCredentialsResponse.token
returned from AbstractOAuthGetToken.execute().public java.lang.String verifier
OAuthCallbackUrl.verifier.public OAuthGetAccessToken(java.lang.String authorizationServerUrl)
authorizationServerUrl - encoded authorization server URLpublic OAuthParameters createParameters()
AbstractOAuthGetTokencreateParameters in class AbstractOAuthGetTokenCopyright © 2011-2018 Google. All Rights Reserved.