Uses of Class
com.google.auth.oauth2.GoogleCredentials
Packages that use GoogleCredentials
-
Uses of GoogleCredentials in com.google.auth.oauth2
Subclasses of GoogleCredentials in com.google.auth.oauth2Modifier and TypeClassDescription(package private) class
OAuth2 credentials representing the built-in service account for Google App Engine.class
Credentials representing an AWS third-party identity for calling Google APIs.class
OAuth2 credentials representing the built-in service account for Google Cloud Shell.class
OAuth2 credentials representing the built-in service account for a Google Compute Engine VM.class
OAuth2 credentials sourced using external identities through Workforce Identity Federation.class
Base external account credentials class.class
class
Url-sourced, file-sourced, or user provided supplier method-sourced external account credentials.class
ImpersonatedCredentials allowing credentials issued to a user or service account to impersonate another.class
PluggableAuthCredentials enables the exchange of workload identity pool external credentials for Google access tokens by retrieving 3rd party tokens through a user supplied executable.class
OAuth2 credentials representing a Service Account for calling Google APIs.class
OAuth2 Credentials representing a user's identity and consent.Fields in com.google.auth.oauth2 declared as GoogleCredentialsModifier and TypeFieldDescriptionprivate GoogleCredentials
DefaultCredentialsProvider.cachedCredentials
private GoogleCredentials
DownscopedCredentials.Builder.sourceCredential
private final GoogleCredentials
DownscopedCredentials.sourceCredential
private GoogleCredentials
ImpersonatedCredentials.Builder.sourceCredentials
private GoogleCredentials
ImpersonatedCredentials.sourceCredentials
Methods in com.google.auth.oauth2 that return GoogleCredentialsModifier and TypeMethodDescriptionGoogleCredentials.Builder.build()
static GoogleCredentials
GoogleCredentials.create
(AccessToken accessToken) Returns the credentials instance from the given access token.static GoogleCredentials
GoogleCredentials.create
(String universeDomain, AccessToken accessToken) Returns the credentials instance from the given access token and universe domain.GoogleCredentials.createDelegated
(String user) 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.ServiceAccountCredentials.createDelegated
(String user) AppEngineCredentials.createScoped
(Collection<String> scopes) AppEngineCredentials.createScoped
(Collection<String> scopes, Collection<String> defaultScopes) AwsCredentials.createScoped
(Collection<String> newScopes) Clones the AwsCredentials with the specified scopes.ComputeEngineCredentials.createScoped
(Collection<String> newScopes) Clones the compute engine account with the specified scopes.ComputeEngineCredentials.createScoped
(Collection<String> newScopes, Collection<String> newDefaultScopes) Clones the compute engine account with the specified scopes and default scopes.GoogleCredentials.createScoped
(String... scopes) If the credentials support scopes, creates a copy of the identity with the specified scopes; otherwise, returns the same instance.GoogleCredentials.createScoped
(Collection<String> scopes) If the credentials support scopes, creates a copy of the identity with the specified scopes, invalidates the existing scoped access token; otherwise, return the same instance.GoogleCredentials.createScoped
(Collection<String> scopes, Collection<String> defaultScopes) If the credentials support scopes, creates a copy of the identity with the specified scopes and default scopes; otherwise, returns the same instance.ImpersonatedCredentials.createScoped
(Collection<String> scopes) ServiceAccountCredentials.createScoped
(Collection<String> newScopes) Clones the service account with the specified scopes.ServiceAccountCredentials.createScoped
(Collection<String> newScopes, Collection<String> newDefaultScopes) Clones the service account with the specified scopes.GoogleCredentials.createWithCustomRetryStrategy
(boolean defaultRetriesEnabled) If the credentials support automatic retries, creates a copy of the identity with the provided retry strategyGoogleCredentials.createWithQuotaProject
(String quotaProject) Creates a credential with the provided quota project.static GoogleCredentials
GoogleCredentials.fromStream
(InputStream credentialsStream) Returns credentials defined by a JSON file stream.static GoogleCredentials
GoogleCredentials.fromStream
(InputStream credentialsStream, HttpTransportFactory transportFactory) Returns credentials defined by a JSON file stream.static GoogleCredentials
GoogleCredentials.getApplicationDefault()
Returns the Application Default Credentials.static GoogleCredentials
GoogleCredentials.getApplicationDefault
(HttpTransportFactory transportFactory) Returns the Application Default Credentials.(package private) final GoogleCredentials
DefaultCredentialsProvider.getDefaultCredentials
(HttpTransportFactory transportFactory) Returns the Application Default Credentials.private final GoogleCredentials
DefaultCredentialsProvider.getDefaultCredentialsUnsynchronized
(HttpTransportFactory transportFactory) DownscopedCredentials.getSourceCredentials()
ImpersonatedCredentials.Builder.getSourceCredentials()
ImpersonatedCredentials.getSourceCredentials()
private GoogleCredentials
DefaultCredentialsProvider.tryGetAppEngineCredential()
private GoogleCredentials
DefaultCredentialsProvider.tryGetCloudShellCredentials()
private final GoogleCredentials
DefaultCredentialsProvider.tryGetComputeCredentials
(HttpTransportFactory transportFactory) Methods in com.google.auth.oauth2 with parameters of type GoogleCredentialsModifier and TypeMethodDescriptionstatic ImpersonatedCredentials
ImpersonatedCredentials.create
(GoogleCredentials sourceCredentials, String targetPrincipal, List<String> delegates, List<String> scopes, int lifetime) static ImpersonatedCredentials
ImpersonatedCredentials.create
(GoogleCredentials sourceCredentials, String targetPrincipal, List<String> delegates, List<String> scopes, int lifetime, HttpTransportFactory transportFactory) static ImpersonatedCredentials
ImpersonatedCredentials.create
(GoogleCredentials sourceCredentials, String targetPrincipal, List<String> delegates, List<String> scopes, int lifetime, HttpTransportFactory transportFactory, String quotaProjectId) static ImpersonatedCredentials
ImpersonatedCredentials.create
(GoogleCredentials sourceCredentials, String targetPrincipal, List<String> delegates, List<String> scopes, int lifetime, HttpTransportFactory transportFactory, String quotaProjectId, String iamEndpointOverride) DownscopedCredentials.Builder.setSourceCredential
(GoogleCredentials sourceCredential) Sets the required source credential used to acquire the downscoped credential.ImpersonatedCredentials.Builder.setSourceCredentials
(GoogleCredentials sourceCredentials) private void
DefaultCredentialsProvider.warnAboutProblematicCredentials
(GoogleCredentials credentials) Constructors in com.google.auth.oauth2 with parameters of type GoogleCredentialsModifierConstructorDescriptionprotected
Builder
(GoogleCredentials credentials) protected
Builder
(GoogleCredentials sourceCredentials, String targetPrincipal) Deprecated.
Builder(ImpersonatedCredentials)
instead.