@Beta public abstract class AbstractOAuthGetToken extends GenericUrl
Beta
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
String |
consumerKey
Required identifier portion of the client credentials (equivalent to a username).
|
OAuthSigner |
signer
Required OAuth signature algorithm.
|
HttpTransport |
transport
HTTP transport required for executing request in
execute() . |
protected boolean |
usePost
true for POST request or the default false for GET request. |
Modifier | Constructor and Description |
---|---|
protected |
AbstractOAuthGetToken(String authorizationServerUrl) |
Modifier and Type | Method and Description |
---|---|
OAuthParameters |
createParameters()
Returns a new instance of the OAuth authentication provider.
|
OAuthCredentialsResponse |
execute()
Executes the HTTP request for a temporary or long-lived token.
|
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, toPathParts, toString, toURI, toURL, toURL
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public HttpTransport transport
execute()
.public String consumerKey
public OAuthSigner signer
protected boolean usePost
true
for POST request or the default false
for GET request.protected AbstractOAuthGetToken(String authorizationServerUrl)
authorizationServerUrl
- encoded authorization server URLpublic final OAuthCredentialsResponse execute() throws IOException
IOException
public OAuthParameters createParameters()
Copyright © 2011–2022 Google. All rights reserved.