Class AbstractOAuthGetToken
java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.http.GenericUrl
com.google.api.client.auth.oauth.AbstractOAuthGetToken
- Direct Known Subclasses:
OAuthGetAccessToken, OAuthGetTemporaryToken
@Beta
public abstract class AbstractOAuthGetToken
extends com.google.api.client.http.GenericUrl
Beta Generic OAuth 1.0a URL to request a temporary or long-lived token from an authorization server.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.FlagsNested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionRequired identifier portion of the client credentials (equivalent to a username).Required OAuth signature algorithm.com.google.api.client.http.HttpTransportHTTP transport required for executing request inexecute().protected booleantruefor POST request or the defaultfalsefor GET request. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a new instance of the OAuth authentication provider.final OAuthCredentialsResponseexecute()Executes the HTTP request for a temporary or long-lived token.Methods inherited from class com.google.api.client.http.GenericUrl
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, toURLMethods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysMethods inherited from class AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, valuesMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
transport
public com.google.api.client.http.HttpTransport transportHTTP transport required for executing request inexecute().- Since:
- 1.3
-
consumerKey
Required identifier portion of the client credentials (equivalent to a username). -
signer
Required OAuth signature algorithm. -
usePost
protected boolean usePosttruefor POST request or the defaultfalsefor GET request.
-
-
Constructor Details
-
AbstractOAuthGetToken
- Parameters:
authorizationServerUrl- encoded authorization server URL
-
-
Method Details
-
execute
Executes the HTTP request for a temporary or long-lived token.- Returns:
- OAuth credentials response object
- Throws:
IOException
-
createParameters
Returns a new instance of the OAuth authentication provider. Subclasses may override by calling this super implementation and then adding OAuth parameters.
-