Class AbstractOAuthGetToken (1.34.1)

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
NameDescription
authorizationServerUrlString

encoded authorization server URL

Fields

consumerKey

public String consumerKey

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

Field Value
TypeDescription
String

signer

public OAuthSigner signer

Required OAuth signature algorithm.

Field Value
TypeDescription
OAuthSigner

transport

public HttpTransport transport

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

Field Value
TypeDescription
com.google.api.client.http.HttpTransport

usePost

protected boolean usePost

true for POST request or the default false for GET request.

Field Value
TypeDescription
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
TypeDescription
OAuthParameters

execute()

public final OAuthCredentialsResponse execute()

Executes the HTTP request for a temporary or long-lived token.

Returns
TypeDescription
OAuthCredentialsResponse

OAuth credentials response object

Exceptions
TypeDescription
IOException