@Beta
public abstract class AbstractOAuthGetToken
extends com.google.api.client.http.GenericUrl
Beta com.google.api.client.util.GenericData.FlagsAbstractMap.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.
|
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 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, toString, toURI, toURL, toURLentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuespublic 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-2015 Google. All Rights Reserved.