Skip navigation links
A B C D E F G H I L M N O R S T U 

A

AccessToken - Class in com.google.auth.oauth2
Represents a temporary OAuth2 access token and its expiration information.
AccessToken(String, Date) - Constructor for class com.google.auth.oauth2.AccessToken
 
addChangeListener(OAuth2Credentials.CredentialsChangedListener) - Method in class com.google.auth.oauth2.OAuth2Credentials
Adds a listener that is notified when the Credentials data changes.
AuthHttpConstants - Class in com.google.auth.http
Constants used for auth in http
AuthHttpConstants() - Constructor for class com.google.auth.http.AuthHttpConstants
 
AUTHORIZATION - Static variable in class com.google.auth.http.AuthHttpConstants
HTTP "Authentication" header

B

BEARER - Static variable in class com.google.auth.http.AuthHttpConstants
HTTP "Bearer" authentication scheme
build() - Method in class com.google.auth.oauth2.ClientId.Builder
 
build() - Method in class com.google.auth.oauth2.CloudShellCredentials.Builder
 
build() - Method in class com.google.auth.oauth2.ComputeEngineCredentials.Builder
 
build() - Method in class com.google.auth.oauth2.GoogleCredentials.Builder
 
build() - Method in class com.google.auth.oauth2.OAuth2Credentials.Builder
 
build() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
build() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
 
build() - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
 
build() - Method in class com.google.auth.oauth2.UserCredentials.Builder
 
Builder() - Constructor for class com.google.auth.oauth2.ClientId.Builder
 
Builder(ClientId) - Constructor for class com.google.auth.oauth2.ClientId.Builder
 
Builder() - Constructor for class com.google.auth.oauth2.CloudShellCredentials.Builder
 
Builder(CloudShellCredentials) - Constructor for class com.google.auth.oauth2.CloudShellCredentials.Builder
 
Builder() - Constructor for class com.google.auth.oauth2.ComputeEngineCredentials.Builder
 
Builder(ComputeEngineCredentials) - Constructor for class com.google.auth.oauth2.ComputeEngineCredentials.Builder
 
Builder() - Constructor for class com.google.auth.oauth2.GoogleCredentials.Builder
 
Builder(GoogleCredentials) - Constructor for class com.google.auth.oauth2.GoogleCredentials.Builder
 
Builder() - Constructor for class com.google.auth.oauth2.OAuth2Credentials.Builder
 
Builder(OAuth2Credentials) - Constructor for class com.google.auth.oauth2.OAuth2Credentials.Builder
 
Builder() - Constructor for class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
Builder(ServiceAccountCredentials) - Constructor for class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
Builder() - Constructor for class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
 
Builder(ServiceAccountJwtAccessCredentials) - Constructor for class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
 
Builder() - Constructor for class com.google.auth.oauth2.UserAuthorizer.Builder
 
Builder(UserAuthorizer) - Constructor for class com.google.auth.oauth2.UserAuthorizer.Builder
 
Builder() - Constructor for class com.google.auth.oauth2.UserCredentials.Builder
 
Builder(UserCredentials) - Constructor for class com.google.auth.oauth2.UserCredentials.Builder
 

C

ClientId - Class in com.google.auth.oauth2
An OAuth2 user authorization Client ID and associated information.
ClientId(String, String) - Constructor for class com.google.auth.oauth2.ClientId
Deprecated.
Use ClientId.of(String, String) instead. This constructor will either be deleted or made private in a later version.
ClientId.Builder - Class in com.google.auth.oauth2
 
CloudShellCredentials - Class in com.google.auth.oauth2
OAuth2 credentials representing the built-in service account for Google Cloud Shell.
CloudShellCredentials(int) - Constructor for class com.google.auth.oauth2.CloudShellCredentials
Deprecated.
Use CloudShellCredentials.create(int) instead. This constructor will either be deleted or made private in a later version.
CloudShellCredentials.Builder - Class in com.google.auth.oauth2
 
com.google.auth.http - package com.google.auth.http
 
com.google.auth.oauth2 - package com.google.auth.oauth2
 
ComputeEngineCredentials - Class in com.google.auth.oauth2
OAuth2 credentials representing the built-in service account for a Google Compute Engine VM.
ComputeEngineCredentials() - Constructor for class com.google.auth.oauth2.ComputeEngineCredentials
Deprecated.
Use ComputeEngineCredentials.create() instead. This constructor will either be deleted or made private in a later version.
ComputeEngineCredentials(HttpTransportFactory) - Constructor for class com.google.auth.oauth2.ComputeEngineCredentials
Deprecated.
Use ComputeEngineCredentials.newBuilder() instead. This constructor will either be deleted or made private in a later version.
ComputeEngineCredentials.Builder - Class in com.google.auth.oauth2
 
create() - Method in interface com.google.auth.http.HttpTransportFactory
Creates a HttpTransport instance.
create(int) - Static method in class com.google.auth.oauth2.CloudShellCredentials
 
create() - Static method in class com.google.auth.oauth2.ComputeEngineCredentials
Create a new ComputeEngineCredentials instance with default behavior.
create(AccessToken) - Static method in class com.google.auth.oauth2.GoogleCredentials
Returns the credentials instance from the given access token.
create(AccessToken) - Static method in class com.google.auth.oauth2.OAuth2Credentials
Returns the credentials instance from the given access token.
createDelegated(String) - Method in class com.google.auth.oauth2.GoogleCredentials
If the credentials support domain-wide delegation, creates a copy of the identity so that it impersonates the specified user; otherwise, returns the same instance.
createDelegated(String) - Method in class com.google.auth.oauth2.ServiceAccountCredentials
 
createScoped(Collection<String>) - Method in class com.google.auth.oauth2.GoogleCredentials
If the credentials support scopes, creates a copy of the the identity with the specified scopes; otherwise, returns the same instance.
createScoped(Collection<String>) - Method in class com.google.auth.oauth2.ServiceAccountCredentials
Clones the service account with the specified scopes.
createScopedRequired() - Method in class com.google.auth.oauth2.GoogleCredentials
Indicates whether the credentials require scopes to be specified via a call to {link GoogleCredentials#createScoped} before use.
createScopedRequired() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
Returns whether the scopes are empty, meaning createScoped must be called before use.

D

delete(String) - Method in class com.google.auth.oauth2.MemoryTokensStorage
 
delete(String) - Method in interface com.google.auth.oauth2.TokenStore
Remove the token data from storage for the given ID.

E

equals(Object) - Method in class com.google.auth.oauth2.AccessToken
 
equals(Object) - Method in class com.google.auth.oauth2.CloudShellCredentials
 
equals(Object) - Method in class com.google.auth.oauth2.ComputeEngineCredentials
 
equals(Object) - Method in class com.google.auth.oauth2.OAuth2Credentials
 
equals(Object) - Method in class com.google.auth.oauth2.ServiceAccountCredentials
 
equals(Object) - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
equals(Object) - Method in class com.google.auth.oauth2.UserCredentials
 

F

fromJson(Map<String, Object>) - Static method in class com.google.auth.oauth2.ClientId
Constructs a Client ID from JSON from a downloaded file.
fromPkcs8(String, String, String, String, Collection<String>) - Static method in class com.google.auth.oauth2.ServiceAccountCredentials
Factory with minimum identifying information using PKCS#8 for the private key.
fromPkcs8(String, String, String, String, Collection<String>, HttpTransportFactory, URI) - Static method in class com.google.auth.oauth2.ServiceAccountCredentials
Factory with minimum identifying information and custom transport using PKCS#8 for the private key.
fromPkcs8(String, String, String, String, Collection<String>, HttpTransportFactory, URI, String) - Static method in class com.google.auth.oauth2.ServiceAccountCredentials
Factory with minimum identifying information and custom transport using PKCS#8 for the private key.
fromPkcs8(String, String, String, String) - Static method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
Factory using PKCS#8 for the private key.
fromPkcs8(String, String, String, String, URI) - Static method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
Factory using PKCS#8 for the private key.
fromResource(Class<?>, String) - Static method in class com.google.auth.oauth2.ClientId
Constructs a Client ID from JSON file stored as a resource.
fromStream(InputStream) - Static method in class com.google.auth.oauth2.ClientId
Constructs a Client ID from JSON file stream.
fromStream(InputStream) - Static method in class com.google.auth.oauth2.GoogleCredentials
Returns credentials defined by a JSON file stream.
fromStream(InputStream, HttpTransportFactory) - Static method in class com.google.auth.oauth2.GoogleCredentials
Returns credentials defined by a JSON file stream.
fromStream(InputStream) - Static method in class com.google.auth.oauth2.ServiceAccountCredentials
Returns credentials defined by a Service Account key file in JSON format from the Google Developers Console.
fromStream(InputStream, HttpTransportFactory) - Static method in class com.google.auth.oauth2.ServiceAccountCredentials
Returns credentials defined by a Service Account key file in JSON format from the Google Developers Console.
fromStream(InputStream) - Static method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
Returns credentials defined by a Service Account key file in JSON format from the Google Developers Console.
fromStream(InputStream, URI) - Static method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
Returns credentials defined by a Service Account key file in JSON format from the Google Developers Console.
fromStream(InputStream) - Static method in class com.google.auth.oauth2.UserCredentials
Returns credentials defined by a JSON file stream using the format supported by the Cloud SDK.
fromStream(InputStream, HttpTransportFactory) - Static method in class com.google.auth.oauth2.UserCredentials
Returns credentials defined by a JSON file stream using the format supported by the Cloud SDK.

G

GET_AUTH_TOKEN_REQUEST - Static variable in class com.google.auth.oauth2.CloudShellCredentials
The Cloud Shell back authorization channel uses serialized Javascript Protobufers, preceeded by the message length and a new line character.
getAccessToken() - Method in class com.google.auth.oauth2.OAuth2Credentials.Builder
 
getAccessToken() - Method in class com.google.auth.oauth2.OAuth2Credentials
 
getAccount() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
 
getAccount() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
getAndStoreCredentialsFromCode(String, String, URI) - Method in class com.google.auth.oauth2.UserAuthorizer
Exchanges an authorization code for tokens and stores them.
getApplicationDefault() - Static method in class com.google.auth.oauth2.GoogleCredentials
Returns the Application Default Credentials.
getApplicationDefault(HttpTransportFactory) - Static method in class com.google.auth.oauth2.GoogleCredentials
Returns the Application Default Credentials.
getAuthenticationType() - Method in class com.google.auth.oauth2.OAuth2Credentials
 
getAuthenticationType() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
getAuthorizationUrl(String, String, URI) - Method in class com.google.auth.oauth2.UserAuthorizer
Return an URL that performs the authorization consent prompt web UI.
getAuthPort() - Method in class com.google.auth.oauth2.CloudShellCredentials.Builder
 
getAuthPort() - Method in class com.google.auth.oauth2.CloudShellCredentials
 
getCallbackUri() - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
 
getCallbackUri() - Method in class com.google.auth.oauth2.UserAuthorizer
Returns the URI for implementation of the OAuth2 web callback.
getCallbackUri(URI) - Method in class com.google.auth.oauth2.UserAuthorizer
Returns the URI for implementation of the OAuth2 web callback, optionally relative to the specified URI.
getClientEmail() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
getClientEmail() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
 
getClientEmail() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
 
getClientEmail() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
getClientId() - Method in class com.google.auth.oauth2.ClientId
Returns the text identifier of the Client ID.
getClientId() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
getClientId() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
 
getClientId() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
 
getClientId() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
getClientId() - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
 
getClientId() - Method in class com.google.auth.oauth2.UserAuthorizer
Returns the Client ID user to identify the OAuth2 consent prompt.
getClientId() - Method in class com.google.auth.oauth2.UserCredentials.Builder
 
getClientId() - Method in class com.google.auth.oauth2.UserCredentials
Returns client ID of the credential from the console.
getClientSecret() - Method in class com.google.auth.oauth2.ClientId.Builder
 
getClientSecret() - Method in class com.google.auth.oauth2.ClientId
Returns the secret associated with the Client ID.
getClientSecret() - Method in class com.google.auth.oauth2.UserCredentials.Builder
 
getClientSecret() - Method in class com.google.auth.oauth2.UserCredentials
Returns client secret of the credential from the console.
getCredentials(String) - Method in class com.google.auth.oauth2.UserAuthorizer
Attempts to retrieve credentials for the approved end user consent.
getCredentialsFromCode(String, URI) - Method in class com.google.auth.oauth2.UserAuthorizer
Returns a UserCredentials instance by exchanging an OAuth2 authorization code for tokens.
getDefaultAudience() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
 
getExpirationTime() - Method in class com.google.auth.oauth2.AccessToken
Time when access token will expire.
getFromServiceLoader(Class<? extends T>, T) - Static method in class com.google.auth.oauth2.OAuth2Credentials
 
getHttpTransportFactory() - Method in class com.google.auth.oauth2.ComputeEngineCredentials.Builder
 
getHttpTransportFactory() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
getHttpTransportFactory() - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
 
getHttpTransportFactory() - Method in class com.google.auth.oauth2.UserCredentials.Builder
 
getMetadataServerUrl(DefaultCredentialsProvider) - Static method in class com.google.auth.oauth2.ComputeEngineCredentials
 
getMetadataServerUrl() - Static method in class com.google.auth.oauth2.ComputeEngineCredentials
 
getPrivateKey() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
getPrivateKey() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
 
getPrivateKey() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
 
getPrivateKey() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
getPrivateKeyId() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
getPrivateKeyId() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
 
getPrivateKeyId() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
 
getPrivateKeyId() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
getProjectId() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
getProjectId() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
 
getRefreshToken() - Method in class com.google.auth.oauth2.UserCredentials.Builder
 
getRefreshToken() - Method in class com.google.auth.oauth2.UserCredentials
Returns the refresh token resulting from a OAuth2 consent flow.
getRequestMetadata(URI, Executor, RequestMetadataCallback) - Method in class com.google.auth.oauth2.OAuth2Credentials
 
getRequestMetadata(URI) - Method in class com.google.auth.oauth2.OAuth2Credentials
Provide the request metadata by ensuring there is a current access token and providing it as an authorization bearer token.
getRequestMetadata(URI, Executor, RequestMetadataCallback) - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
getRequestMetadata(URI) - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
Provide the request metadata by putting an access JWT directly in the metadata.
getRequestMetadataInternal() - Method in class com.google.auth.oauth2.OAuth2Credentials
 
getScopes() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
getScopes() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
 
getScopes() - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
 
getScopes() - Method in class com.google.auth.oauth2.UserAuthorizer
Returns the scopes defining the user consent.
getServiceAccountUser() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
getServiceAccountUser() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
 
getTokenServerEncodedUrl(DefaultCredentialsProvider) - Static method in class com.google.auth.oauth2.ComputeEngineCredentials
 
getTokenServerEncodedUrl() - Static method in class com.google.auth.oauth2.ComputeEngineCredentials
 
getTokenServerUri() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
getTokenServerUri() - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
 
getTokenServerUri() - Method in class com.google.auth.oauth2.UserCredentials.Builder
 
getTokenStore() - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
 
getTokenStore() - Method in class com.google.auth.oauth2.UserAuthorizer
Returns the implementation of a component for long term storage of tokens.
getTokenValue() - Method in class com.google.auth.oauth2.AccessToken
String representation of the access token.
getUserAuthUri() - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
 
GoogleCredentials - Class in com.google.auth.oauth2
Base type for credentials for authorizing calls to Google APIs using OAuth2.
GoogleCredentials() - Constructor for class com.google.auth.oauth2.GoogleCredentials
Default constructor.
GoogleCredentials(AccessToken) - Constructor for class com.google.auth.oauth2.GoogleCredentials
Deprecated.
Use GoogleCredentials.create(AccessToken) instead. This constructor will either be deleted or made protected/private in a later version.
GoogleCredentials.Builder - Class in com.google.auth.oauth2
 

H

handleResponse(HttpRequest, HttpResponse, boolean) - Method in class com.google.auth.http.HttpCredentialsAdapter
hashCode() - Method in class com.google.auth.oauth2.AccessToken
 
hashCode() - Method in class com.google.auth.oauth2.CloudShellCredentials
 
hashCode() - Method in class com.google.auth.oauth2.ComputeEngineCredentials
 
hashCode() - Method in class com.google.auth.oauth2.OAuth2Credentials
 
hashCode() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
 
hashCode() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
hashCode() - Method in class com.google.auth.oauth2.UserCredentials
 
hasRequestMetadata() - Method in class com.google.auth.oauth2.OAuth2Credentials
 
hasRequestMetadata() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
hasRequestMetadataOnly() - Method in class com.google.auth.oauth2.OAuth2Credentials
 
hasRequestMetadataOnly() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
HttpCredentialsAdapter - Class in com.google.auth.http
A wrapper for using Credentials with the Google API Client Libraries for Java with Http.
HttpCredentialsAdapter(Credentials) - Constructor for class com.google.auth.http.HttpCredentialsAdapter
 
HttpTransportFactory - Interface in com.google.auth.http
A base interface for all HttpTransport factories.

I

initialize(HttpRequest) - Method in class com.google.auth.http.HttpCredentialsAdapter
Initialize the HTTP request prior to execution.

L

load(String) - Method in class com.google.auth.oauth2.MemoryTokensStorage
 
load(String) - Method in interface com.google.auth.oauth2.TokenStore
Load the token data from storage for the given ID.

M

MemoryTokensStorage - Class in com.google.auth.oauth2
Represents an in-memory storage of tokens.
MemoryTokensStorage() - Constructor for class com.google.auth.oauth2.MemoryTokensStorage
 
monitorCredentials(String, UserCredentials) - Method in class com.google.auth.oauth2.UserAuthorizer
Adds a listen to rewrite the credentials when the tokens are refreshed.

N

newBuilder() - Static method in class com.google.auth.oauth2.ClientId
 
newBuilder() - Static method in class com.google.auth.oauth2.CloudShellCredentials
 
newBuilder() - Static method in class com.google.auth.oauth2.ComputeEngineCredentials
 
newBuilder() - Static method in class com.google.auth.oauth2.GoogleCredentials
 
newBuilder() - Static method in class com.google.auth.oauth2.OAuth2Credentials
 
newBuilder() - Static method in class com.google.auth.oauth2.ServiceAccountCredentials
 
newBuilder() - Static method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
newBuilder() - Static method in class com.google.auth.oauth2.UserAuthorizer
 
newBuilder() - Static method in class com.google.auth.oauth2.UserCredentials
 
newInstance(String) - Static method in class com.google.auth.oauth2.OAuth2Credentials
 

O

OAuth2Credentials - Class in com.google.auth.oauth2
Base type for Credentials using OAuth2.
OAuth2Credentials() - Constructor for class com.google.auth.oauth2.OAuth2Credentials
Default constructor.
OAuth2Credentials(AccessToken) - Constructor for class com.google.auth.oauth2.OAuth2Credentials
Deprecated.
Use OAuth2Credentials.create(AccessToken) instead. This constructor will either be deleted or made private in a later version.
OAuth2Credentials.Builder - Class in com.google.auth.oauth2
 
OAuth2Credentials.CredentialsChangedListener - Interface in com.google.auth.oauth2
Listener for changes to credentials.
of(String, String) - Static method in class com.google.auth.oauth2.ClientId
Constructs a client ID from an explicit ID and secret.
of(int) - Static method in class com.google.auth.oauth2.CloudShellCredentials
Deprecated.
Use CloudShellCredentials.create(int) instead. This method will be deleted in a later version.
of(HttpTransportFactory) - Static method in class com.google.auth.oauth2.ComputeEngineCredentials
Deprecated.
Use ComputeEngineCredentials.newBuilder() instead. This constructor will either be deleted or made private in a later version.
of(AccessToken) - Static method in class com.google.auth.oauth2.GoogleCredentials
Deprecated.
Use GoogleCredentials.create(AccessToken) instead. This method will be deleted in a later version.
of(AccessToken) - Static method in class com.google.auth.oauth2.OAuth2Credentials
Deprecated.
Use OAuth2Credentials.create(AccessToken) instead. This method will be deleted in a later version.
onChanged(OAuth2Credentials) - Method in interface com.google.auth.oauth2.OAuth2Credentials.CredentialsChangedListener
Notifies that the credentials have changed.

R

refresh() - Method in class com.google.auth.oauth2.OAuth2Credentials
Refresh the token by discarding the cached token and metadata and requesting the new ones.
refresh() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
Discard any cached data
refreshAccessToken() - Method in class com.google.auth.oauth2.CloudShellCredentials
 
refreshAccessToken() - Method in class com.google.auth.oauth2.ComputeEngineCredentials
Refresh the access token by getting it from the GCE metadata server
refreshAccessToken() - Method in class com.google.auth.oauth2.OAuth2Credentials
Method to refresh the access token according to the specific type of credentials.
refreshAccessToken() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
Refreshes the OAuth2 access token by getting a new access token using a JSON Web Token (JWT).
refreshAccessToken() - Method in class com.google.auth.oauth2.UserCredentials
Refreshes the OAuth2 access token by getting a new access token from the refresh token
removeChangeListener(OAuth2Credentials.CredentialsChangedListener) - Method in class com.google.auth.oauth2.OAuth2Credentials
Removes a listener that was added previously.
revokeAuthorization(String) - Method in class com.google.auth.oauth2.UserAuthorizer
Revokes the authorization for tokens stored for the user.

S

save(String) - Method in class com.google.auth.oauth2.UserCredentials
Saves the end user credentials into the given file path.
ServiceAccountCredentials - Class in com.google.auth.oauth2
OAuth2 credentials representing a Service Account for calling Google APIs.
ServiceAccountCredentials(String, String, PrivateKey, String, Collection<String>) - Constructor for class com.google.auth.oauth2.ServiceAccountCredentials
Deprecated.
Use ServiceAccountCredentials.newBuilder() instead. This constructor will either be deleted or made private in a later version.
ServiceAccountCredentials(String, String, PrivateKey, String, Collection<String>, HttpTransportFactory, URI) - Constructor for class com.google.auth.oauth2.ServiceAccountCredentials
Deprecated.
Use ServiceAccountCredentials.newBuilder() instead. This constructor will either be deleted or made private in a later version.
ServiceAccountCredentials.Builder - Class in com.google.auth.oauth2
 
ServiceAccountJwtAccessCredentials - Class in com.google.auth.oauth2
Service Account credentials for calling Google APIs using a JWT directly for access.
ServiceAccountJwtAccessCredentials(String, String, PrivateKey, String) - Constructor for class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
Deprecated.
Use ServiceAccountJwtAccessCredentials.newBuilder() instead. This constructor will either be deleted or made private in a later version.
ServiceAccountJwtAccessCredentials(String, String, PrivateKey, String, URI) - Constructor for class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
Deprecated.
Use ServiceAccountJwtAccessCredentials.newBuilder() instead. This constructor will either be deleted or made private in a later version.
ServiceAccountJwtAccessCredentials.Builder - Class in com.google.auth.oauth2
 
setAccessToken(AccessToken) - Method in class com.google.auth.oauth2.GoogleCredentials.Builder
 
setAccessToken(AccessToken) - Method in class com.google.auth.oauth2.OAuth2Credentials.Builder
 
setAccessToken(AccessToken) - Method in class com.google.auth.oauth2.UserCredentials.Builder
 
setAuthPort(int) - Method in class com.google.auth.oauth2.CloudShellCredentials.Builder
 
setCallbackUri(URI) - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
 
setClientEmail(String) - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
setClientEmail(String) - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
 
setClientId(String) - Method in class com.google.auth.oauth2.ClientId.Builder
 
setClientId(String) - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
setClientId(String) - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
 
setClientId(ClientId) - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
 
setClientId(String) - Method in class com.google.auth.oauth2.UserCredentials.Builder
 
setClientSecret(String) - Method in class com.google.auth.oauth2.ClientId.Builder
 
setClientSecret(String) - Method in class com.google.auth.oauth2.UserCredentials.Builder
 
setDefaultAudience(URI) - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
 
setHttpTransportFactory(HttpTransportFactory) - Method in class com.google.auth.oauth2.ComputeEngineCredentials.Builder
 
setHttpTransportFactory(HttpTransportFactory) - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
setHttpTransportFactory(HttpTransportFactory) - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
 
setHttpTransportFactory(HttpTransportFactory) - Method in class com.google.auth.oauth2.UserCredentials.Builder
 
setPrivateKey(PrivateKey) - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
setPrivateKey(PrivateKey) - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
 
setPrivateKeyId(String) - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
setPrivateKeyId(String) - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
 
setProjectId(String) - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
setRefreshToken(String) - Method in class com.google.auth.oauth2.UserCredentials.Builder
 
setScopes(Collection<String>) - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
setScopes(Collection<String>) - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
 
setServiceAccountUser(String) - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
setTokenServerUri(URI) - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
 
setTokenServerUri(URI) - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
 
setTokenServerUri(URI) - Method in class com.google.auth.oauth2.UserCredentials.Builder
 
setTokenStore(TokenStore) - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
 
setUserAuthUri(URI) - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
 
sign(byte[]) - Method in class com.google.auth.oauth2.ServiceAccountCredentials
 
sign(byte[]) - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
store(String, String) - Method in class com.google.auth.oauth2.MemoryTokensStorage
 
store(String, String) - Method in interface com.google.auth.oauth2.TokenStore
Put the token data into storage for the given ID.
storeCredentials(String, UserCredentials) - Method in class com.google.auth.oauth2.UserAuthorizer
Puts the end user credentials in long term storage.

T

toBuilder() - Method in class com.google.auth.oauth2.ClientId
 
toBuilder() - Method in class com.google.auth.oauth2.CloudShellCredentials
 
toBuilder() - Method in class com.google.auth.oauth2.ComputeEngineCredentials
 
toBuilder() - Method in class com.google.auth.oauth2.GoogleCredentials
 
toBuilder() - Method in class com.google.auth.oauth2.OAuth2Credentials
 
toBuilder() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
 
toBuilder() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
toBuilder() - Method in class com.google.auth.oauth2.UserAuthorizer
 
toBuilder() - Method in class com.google.auth.oauth2.UserCredentials
 
TokenStore - Interface in com.google.auth.oauth2
Interface for long term storage of tokens
toString() - Method in class com.google.auth.oauth2.AccessToken
 
toString() - Method in class com.google.auth.oauth2.CloudShellCredentials
 
toString() - Method in class com.google.auth.oauth2.ComputeEngineCredentials
 
toString() - Method in class com.google.auth.oauth2.OAuth2Credentials
 
toString() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
 
toString() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
toString() - Method in class com.google.auth.oauth2.UserCredentials
 

U

UserAuthorizer - Class in com.google.auth.oauth2
Handles an interactive 3-Legged-OAuth2 (3LO) user consent authorization.
UserAuthorizer(ClientId, Collection<String>, TokenStore) - Constructor for class com.google.auth.oauth2.UserAuthorizer
Deprecated.
Use UserAuthorizer.newBuilder() instead. This constructor will either be deleted or made private in a later version.
UserAuthorizer(ClientId, Collection<String>, TokenStore, URI) - Constructor for class com.google.auth.oauth2.UserAuthorizer
Deprecated.
Use UserAuthorizer.newBuilder() instead. This constructor will either be deleted or made private in a later version.
UserAuthorizer(ClientId, Collection<String>, TokenStore, URI, HttpTransportFactory, URI, URI) - Constructor for class com.google.auth.oauth2.UserAuthorizer
Deprecated.
Use UserAuthorizer.newBuilder() instead. This constructor will either be deleted or made private in a later version.
UserAuthorizer.Builder - Class in com.google.auth.oauth2
 
UserCredentials - Class in com.google.auth.oauth2
OAuth2 Credentials representing a user's identity and consent.
UserCredentials(String, String, String) - Constructor for class com.google.auth.oauth2.UserCredentials
Deprecated.
Use UserCredentials.newBuilder() instead. This constructor will either be deleted or made private in a later version.
UserCredentials(String, String, String, AccessToken) - Constructor for class com.google.auth.oauth2.UserCredentials
Deprecated.
Use UserCredentials.newBuilder() instead. This constructor will either be deleted or made private in a later version.
UserCredentials(String, String, String, AccessToken, HttpTransportFactory, URI) - Constructor for class com.google.auth.oauth2.UserCredentials
Deprecated.
Use UserCredentials.newBuilder() instead. This constructor will either be deleted or made private in a later version.
UserCredentials.Builder - Class in com.google.auth.oauth2
 
A B C D E F G H I L M N O R S T U 
Skip navigation links

Copyright © 2017 Google. All rights reserved.