Package | Description |
---|---|
com.google.api.client.auth.oauth2 |
Implementation of the OAuth 2.0 Authorization
Framework.
|
Modifier and Type | Method and Description |
---|---|
static Credential.AccessMethod |
BearerToken.authorizationHeaderAccessMethod()
Returns a new instance of an immutable and thread-safe OAuth 2.0 method for accessing protected
resources using the Authorization
Request Header Field.
|
static Credential.AccessMethod |
BearerToken.formEncodedBodyAccessMethod()
Returns a new instance of an immutable and thread-safe OAuth 2.0 method for accessing protected
resources using the Form-Encoded Body
Parameter.
|
Credential.AccessMethod |
Credential.getMethod()
Return the method of presenting the access token to the resource server (for example
BearerToken.AuthorizationHeaderAccessMethod ). |
Credential.AccessMethod |
Credential.Builder.getMethod()
Returns the method of presenting the access token to the resource server (for example
BearerToken.AuthorizationHeaderAccessMethod ). |
Credential.AccessMethod |
AuthorizationCodeFlow.getMethod()
Returns the method of presenting the access token to the resource server (for example
BearerToken.authorizationHeaderAccessMethod() ). |
Credential.AccessMethod |
AuthorizationCodeFlow.Builder.getMethod()
Returns the method of presenting the access token to the resource server (for example
BearerToken.authorizationHeaderAccessMethod() ). |
static Credential.AccessMethod |
BearerToken.queryParameterAccessMethod()
Returns a new instance of an immutable and thread-safe OAuth 2.0 method for accessing protected
resources using the URI Query
Parameter.
|
Modifier and Type | Method and Description |
---|---|
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.setMethod(Credential.AccessMethod method)
Sets the method of presenting the access token to the resource server (for example
BearerToken.authorizationHeaderAccessMethod() ). |
Constructor and Description |
---|
AuthorizationCodeFlow(Credential.AccessMethod method,
HttpTransport transport,
JsonFactory jsonFactory,
GenericUrl tokenServerUrl,
HttpExecuteInterceptor clientAuthentication,
String clientId,
String authorizationServerEncodedUrl) |
Builder(Credential.AccessMethod method) |
Builder(Credential.AccessMethod method,
HttpTransport transport,
JsonFactory jsonFactory,
GenericUrl tokenServerUrl,
HttpExecuteInterceptor clientAuthentication,
String clientId,
String authorizationServerEncodedUrl) |
Credential(Credential.AccessMethod method)
Constructor with the ability to access protected resources, but not refresh tokens.
|
Copyright © 2011–2021 Google. All rights reserved.