Class AbstractOAuthGetToken (1.36.0)

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 > AbstractOAuthGetToken

Constructors

AbstractOAuthGetToken(String authorizationServerUrl)

protected AbstractOAuthGetToken(String authorizationServerUrl)
Parameter
Name Description
authorizationServerUrl String

encoded authorization server URL

Fields

consumerKey

public String consumerKey

Required identifier portion of the client credentials (equivalent to a username).

Field Value
Type Description
String

signer

public OAuthSigner signer

Required OAuth signature algorithm.

Field Value
Type Description
OAuthSigner

transport

public HttpTransport transport

HTTP transport required for executing request in #execute().

Field Value
Type Description
com.google.api.client.http.HttpTransport

usePost

protected boolean usePost

true 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