public abstract class AbstractOAuthGetToken extends GenericUrl
Beta
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 | String encoded authorization server URL |
Fields
consumerKey
public String consumerKey
Required identifier portion of the client credentials (equivalent to a username).
Type | Description |
String |
signer
public OAuthSigner signer
Required OAuth signature algorithm.
Type | Description |
OAuthSigner |
transport
public HttpTransport transport
HTTP transport required for executing request in #execute().
Type | Description |
com.google.api.client.http.HttpTransport |
usePost
protected boolean usePost
true
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 |