OAuthGetAccessToken, OAuthGetTemporaryToken@Beta
public abstract class AbstractOAuthGetToken
extends com.google.api.client.http.GenericUrl
Beta AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>| Modifier and Type | Field | Description |
|---|---|---|
String |
consumerKey |
Required identifier portion of the client credentials (equivalent to a username).
|
OAuthSigner |
signer |
Required OAuth signature algorithm.
|
com.google.api.client.http.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 | Description |
|---|---|---|
protected |
AbstractOAuthGetToken(String authorizationServerUrl) |
| Modifier and Type | Method | 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.
|
clear, containsKey, containsValue, isEmpty, keySet, size, valuesentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysappendRawPath, 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, toURLpublic com.google.api.client.http.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
IOExceptionpublic OAuthParameters createParameters()
Copyright © 2011–2019 Google. All rights reserved.