Package | Description |
---|---|
com.google.auth.appengine | |
com.google.auth.oauth2 |
Modifier and Type | Class and Description |
---|---|
class |
AppEngineCredentials
OAuth2 credentials representing the built-in service account for Google App Engine.
|
Modifier and Type | Method and Description |
---|---|
GoogleCredentials |
AppEngineCredentials.createScoped(Collection<String> scopes) |
Modifier and Type | Class and Description |
---|---|
class |
AwsCredentials
AWS credentials representing a third-party identity for calling Google APIs.
|
class |
CloudShellCredentials
OAuth2 credentials representing the built-in service account for Google Cloud Shell.
|
class |
ComputeEngineCredentials
OAuth2 credentials representing the built-in service account for a Google Compute Engine VM.
|
class |
ExternalAccountAuthorizedUserCredentials
OAuth2 credentials sourced using external identities through Workforce Identity Federation.
|
class |
ExternalAccountCredentials
Base external account credentials class.
|
class |
GdchCredentials |
class |
IdentityPoolCredentials
Url-sourced and file-sourced external account credentials.
|
class |
ImpersonatedCredentials
ImpersonatedCredentials allowing credentials issued to a user or service account to impersonate
another.
|
class |
PluggableAuthCredentials
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 |
ServiceAccountCredentials
OAuth2 credentials representing a Service Account for calling Google APIs.
|
class |
UserCredentials
OAuth2 Credentials representing a user's identity and consent.
|
Modifier and Type | Method and Description |
---|---|
GoogleCredentials |
GoogleCredentials.Builder.build() |
static GoogleCredentials |
GoogleCredentials.create(AccessToken accessToken)
Returns the credentials instance from the given access token.
|
GoogleCredentials |
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.
|
GoogleCredentials |
ServiceAccountCredentials.createDelegated(String user) |
GoogleCredentials |
GoogleCredentials.createScoped(Collection<String> scopes)
If the credentials support scopes, creates a copy of the identity with the specified scopes;
otherwise, returns the same instance.
|
GoogleCredentials |
ImpersonatedCredentials.createScoped(Collection<String> scopes) |
GoogleCredentials |
AwsCredentials.createScoped(Collection<String> newScopes)
Clones the AwsCredentials with the specified scopes.
|
GoogleCredentials |
ServiceAccountCredentials.createScoped(Collection<String> newScopes)
Clones the service account with the specified scopes.
|
GoogleCredentials |
ComputeEngineCredentials.createScoped(Collection<String> newScopes)
Clones the compute engine account with the specified scopes.
|
GoogleCredentials |
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.
|
GoogleCredentials |
ServiceAccountCredentials.createScoped(Collection<String> newScopes,
Collection<String> newDefaultScopes)
Clones the service account with the specified scopes.
|
GoogleCredentials |
ComputeEngineCredentials.createScoped(Collection<String> newScopes,
Collection<String> newDefaultScopes)
Clones the compute engine account with the specified scopes.
|
GoogleCredentials |
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 |
GoogleCredentials.createWithCustomRetryStrategy(boolean defaultRetriesEnabled)
If the credentials support automatic retries, creates a copy of the identity with the provided
retry strategy
|
GoogleCredentials |
GoogleCredentials.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.
|
GoogleCredentials |
DownscopedCredentials.getSourceCredentials() |
GoogleCredentials |
ImpersonatedCredentials.getSourceCredentials() |
GoogleCredentials |
ImpersonatedCredentials.Builder.getSourceCredentials() |
Modifier and Type | Method and Description |
---|---|
static 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 |
DownscopedCredentials.Builder.setSourceCredential(GoogleCredentials sourceCredential) |
ImpersonatedCredentials.Builder |
ImpersonatedCredentials.Builder.setSourceCredentials(GoogleCredentials sourceCredentials) |
Constructor and Description |
---|
Builder(GoogleCredentials credentials) |
Builder(GoogleCredentials sourceCredentials,
String targetPrincipal) |
Copyright © 2023 Google. All rights reserved.