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)| Parameter | |
|---|---|
| Name | Description |
authorizationServerUrl |
Stringencoded authorization server URL |
Fields
consumerKey
public String consumerKeyRequired identifier portion of the client credentials (equivalent to a username).
| Field Value | |
|---|---|
| Type | Description |
String |
|
signer
public OAuthSigner signerRequired OAuth signature algorithm.
| Field Value | |
|---|---|
| Type | Description |
OAuthSigner |
|
transport
public HttpTransport transportHTTP transport required for executing request in #execute().
| Field Value | |
|---|---|
| Type | Description |
com.google.api.client.http.HttpTransport |
|
usePost
protected boolean usePosttrue for POST request or the default false for GET request.
| Field Value | |
|---|---|
| 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.
| Returns | |
|---|---|
| Type | Description |
OAuthParameters |
|
execute()
public final OAuthCredentialsResponse execute()Executes the HTTP request for a temporary or long-lived token.
| Returns | |
|---|---|
| Type | Description |
OAuthCredentialsResponse |
OAuth credentials response object |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|