Uses of Class
com.google.auth.oauth2.GoogleCredentials
-
Packages that use GoogleCredentials Package Description com.google.auth.appengine com.google.auth.oauth2 -
-
Uses of GoogleCredentials in com.google.auth.appengine
Subclasses of GoogleCredentials in com.google.auth.appengine Modifier and Type Class Description class
AppEngineCredentials
OAuth2 credentials representing the built-in service account for Google App Engine.Methods in com.google.auth.appengine that return GoogleCredentials Modifier and Type Method Description GoogleCredentials
AppEngineCredentials. createScoped(Collection<String> scopes)
-
Uses of GoogleCredentials in com.google.auth.oauth2
Subclasses of GoogleCredentials in com.google.auth.oauth2 Modifier and Type Class 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.Methods in com.google.auth.oauth2 that return GoogleCredentials Modifier and Type Method 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
AwsCredentials. createScoped(Collection<String> newScopes)
Clones the AwsCredentials with the specified scopes.GoogleCredentials
ComputeEngineCredentials. createScoped(Collection<String> newScopes)
Clones the compute engine 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. 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
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
ImpersonatedCredentials. createScoped(Collection<String> scopes)
GoogleCredentials
ServiceAccountCredentials. createScoped(Collection<String> newScopes)
Clones the service account with the specified scopes.GoogleCredentials
ServiceAccountCredentials. createScoped(Collection<String> newScopes, Collection<String> newDefaultScopes)
Clones the service account with the specified scopes.GoogleCredentials
GoogleCredentials. createWithCustomRetryStrategy(boolean defaultRetriesEnabled)
If the credentials support automatic retries, creates a copy of the identity with the provided retry strategyGoogleCredentials
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.Builder. getSourceCredentials()
GoogleCredentials
ImpersonatedCredentials. getSourceCredentials()
Methods in com.google.auth.oauth2 with parameters of type GoogleCredentials Modifier and Type Method 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)
Constructors in com.google.auth.oauth2 with parameters of type GoogleCredentials Constructor Description Builder(GoogleCredentials credentials)
Builder(GoogleCredentials sourceCredentials, String targetPrincipal)
-