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 classAppEngineCredentialsOAuth2 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 GoogleCredentialsAppEngineCredentials. 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 classAwsCredentialsAWS credentials representing a third-party identity for calling Google APIs.classCloudShellCredentialsOAuth2 credentials representing the built-in service account for Google Cloud Shell.classComputeEngineCredentialsOAuth2 credentials representing the built-in service account for a Google Compute Engine VM.classExternalAccountAuthorizedUserCredentialsOAuth2 credentials sourced using external identities through Workforce Identity Federation.classExternalAccountCredentialsBase external account credentials class.classGdchCredentialsclassIdentityPoolCredentialsUrl-sourced and file-sourced external account credentials.classImpersonatedCredentialsImpersonatedCredentials allowing credentials issued to a user or service account to impersonate another.classPluggableAuthCredentialsPluggableAuthCredentials enables the exchange of workload identity pool external credentials for Google access tokens by retrieving 3rd party tokens through a user supplied executable.classServiceAccountCredentialsOAuth2 credentials representing a Service Account for calling Google APIs.classUserCredentialsOAuth2 Credentials representing a user's identity and consent.Methods in com.google.auth.oauth2 that return GoogleCredentials Modifier and Type Method Description GoogleCredentialsGoogleCredentials.Builder. build()static GoogleCredentialsGoogleCredentials. create(AccessToken accessToken)Returns the credentials instance from the given access token.GoogleCredentialsGoogleCredentials. 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.GoogleCredentialsServiceAccountCredentials. createDelegated(String user)GoogleCredentialsAwsCredentials. createScoped(Collection<String> newScopes)Clones the AwsCredentials with the specified scopes.GoogleCredentialsComputeEngineCredentials. createScoped(Collection<String> newScopes)Clones the compute engine account with the specified scopes.GoogleCredentialsComputeEngineCredentials. createScoped(Collection<String> newScopes, Collection<String> newDefaultScopes)Clones the compute engine account with the specified scopes.GoogleCredentialsGoogleCredentials. createScoped(String... scopes)If the credentials support scopes, creates a copy of the identity with the specified scopes; otherwise, returns the same instance.GoogleCredentialsGoogleCredentials. createScoped(Collection<String> scopes)If the credentials support scopes, creates a copy of the identity with the specified scopes; otherwise, returns the same instance.GoogleCredentialsGoogleCredentials. 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.GoogleCredentialsImpersonatedCredentials. createScoped(Collection<String> scopes)GoogleCredentialsServiceAccountCredentials. createScoped(Collection<String> newScopes)Clones the service account with the specified scopes.GoogleCredentialsServiceAccountCredentials. createScoped(Collection<String> newScopes, Collection<String> newDefaultScopes)Clones the service account with the specified scopes.GoogleCredentialsGoogleCredentials. createWithCustomRetryStrategy(boolean defaultRetriesEnabled)If the credentials support automatic retries, creates a copy of the identity with the provided retry strategyGoogleCredentialsGoogleCredentials. createWithQuotaProject(String quotaProject)Creates a credential with the provided quota project.static GoogleCredentialsGoogleCredentials. fromStream(InputStream credentialsStream)Returns credentials defined by a JSON file stream.static GoogleCredentialsGoogleCredentials. fromStream(InputStream credentialsStream, HttpTransportFactory transportFactory)Returns credentials defined by a JSON file stream.static GoogleCredentialsGoogleCredentials. getApplicationDefault()Returns the Application Default Credentials.static GoogleCredentialsGoogleCredentials. getApplicationDefault(HttpTransportFactory transportFactory)Returns the Application Default Credentials.GoogleCredentialsDownscopedCredentials. getSourceCredentials()GoogleCredentialsImpersonatedCredentials.Builder. getSourceCredentials()GoogleCredentialsImpersonatedCredentials. getSourceCredentials()Methods in com.google.auth.oauth2 with parameters of type GoogleCredentials Modifier and Type Method Description static ImpersonatedCredentialsImpersonatedCredentials. create(GoogleCredentials sourceCredentials, String targetPrincipal, List<String> delegates, List<String> scopes, int lifetime)static ImpersonatedCredentialsImpersonatedCredentials. create(GoogleCredentials sourceCredentials, String targetPrincipal, List<String> delegates, List<String> scopes, int lifetime, HttpTransportFactory transportFactory)static ImpersonatedCredentialsImpersonatedCredentials. create(GoogleCredentials sourceCredentials, String targetPrincipal, List<String> delegates, List<String> scopes, int lifetime, HttpTransportFactory transportFactory, String quotaProjectId)static ImpersonatedCredentialsImpersonatedCredentials. create(GoogleCredentials sourceCredentials, String targetPrincipal, List<String> delegates, List<String> scopes, int lifetime, HttpTransportFactory transportFactory, String quotaProjectId, String iamEndpointOverride)DownscopedCredentials.BuilderDownscopedCredentials.Builder. setSourceCredential(GoogleCredentials sourceCredential)ImpersonatedCredentials.BuilderImpersonatedCredentials.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)
-