@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
.
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
Modifier and Type | Field | Description |
---|---|---|
String |
temporaryToken |
Required temporary token.
|
String |
verifier |
Required verifier code received from the server when the temporary token was authorized.
|
consumerKey, signer, transport, usePost
Constructor | Description |
---|---|
OAuthGetAccessToken(String authorizationServerUrl) |
Modifier and Type | Method | Description |
---|---|---|
OAuthParameters |
createParameters() |
Returns a new instance of the OAuth authentication provider.
|
clear, containsKey, containsValue, isEmpty, keySet, size, values
execute
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
appendRawPath, 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, toURL
public String temporaryToken
OAuthCredentialsResponse.token
returned from AbstractOAuthGetToken.execute()
.public String verifier
OAuthCallbackUrl.verifier
.public OAuthGetAccessToken(String authorizationServerUrl)
authorizationServerUrl
- encoded authorization server URLpublic OAuthParameters createParameters()
AbstractOAuthGetToken
createParameters
in class AbstractOAuthGetToken
Copyright © 2011–2019 Google. All rights reserved.