public abstract class AbstractOAuthGetToken extends GenericUrlBeta
Generic OAuth 1.0a URL to request a temporary or long-lived token from an authorization server.
Inheritance
java.lang.Object > java.util.AbstractMap > com.google.api.client.util.GenericData > com.google.api.client.http.GenericUrl > AbstractOAuthGetTokenConstructors
AbstractOAuthGetToken(String authorizationServerUrl)
protected AbstractOAuthGetToken(String authorizationServerUrl)| Name | Description |
| authorizationServerUrl | Stringencoded authorization server URL |
Fields
consumerKey
public String consumerKeyRequired identifier portion of the client credentials (equivalent to a username).
| Type | Description |
| String |
signer
public OAuthSigner signerRequired OAuth signature algorithm.
| Type | Description |
| OAuthSigner |
transport
public HttpTransport transportHTTP transport required for executing request in #execute().
| Type | Description |
| com.google.api.client.http.HttpTransport |
usePost
protected boolean usePosttrue for POST request or the default false for GET request.
| Type | Description |
| boolean |
Methods
createParameters()
public OAuthParameters createParameters()Returns a new instance of the OAuth authentication provider. Subclasses may override by calling this super implementation and then adding OAuth parameters.
| Type | Description |
| OAuthParameters |
execute()
public final OAuthCredentialsResponse execute()Executes the HTTP request for a temporary or long-lived token.
| Type | Description |
| OAuthCredentialsResponse | OAuth credentials response object |
| Type | Description |
| IOException |