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) classOAuth2 credentials representing the built-in service account for Google App Engine.classCredentials representing an AWS third-party identity for calling Google APIs.classOAuth2 credentials representing the built-in service account for Google Cloud Shell.classOAuth2 credentials representing the built-in service account for a Google Compute Engine VM.classOAuth2 credentials sourced using external identities through Workforce Identity Federation.classBase external account credentials class.classclassUrl-sourced, file-sourced, or user provided supplier method-sourced external account credentials.classImpersonatedCredentials allowing credentials issued to a user or service account to impersonate another.classPluggableAuthCredentials enables the exchange of workload identity pool external credentials for Google access tokens by retrieving 3rd party tokens through a user supplied executable.classOAuth2 credentials representing a Service Account for calling Google APIs.classOAuth2 Credentials representing a user's identity and consent.Fields in com.google.auth.oauth2 declared as GoogleCredentialsModifier and TypeFieldDescriptionprivate GoogleCredentialsDefaultCredentialsProvider.cachedCredentialsprivate GoogleCredentialsDownscopedCredentials.Builder.sourceCredentialprivate final GoogleCredentialsDownscopedCredentials.sourceCredentialprivate GoogleCredentialsImpersonatedCredentials.Builder.sourceCredentialsprivate GoogleCredentialsImpersonatedCredentials.sourceCredentialsMethods in com.google.auth.oauth2 that return GoogleCredentialsModifier and TypeMethodDescriptionGoogleCredentials.Builder.build()static GoogleCredentialsGoogleCredentials.create(AccessToken accessToken) Returns the credentials instance from the given access token.static GoogleCredentialsGoogleCredentials.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 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.(package private) final GoogleCredentialsDefaultCredentialsProvider.getDefaultCredentials(HttpTransportFactory transportFactory) Returns the Application Default Credentials.private final GoogleCredentialsDefaultCredentialsProvider.getDefaultCredentialsUnsynchronized(HttpTransportFactory transportFactory) DownscopedCredentials.getSourceCredentials()ImpersonatedCredentials.Builder.getSourceCredentials()ImpersonatedCredentials.getSourceCredentials()private GoogleCredentialsDefaultCredentialsProvider.tryGetAppEngineCredential()private GoogleCredentialsDefaultCredentialsProvider.tryGetCloudShellCredentials()private final GoogleCredentialsDefaultCredentialsProvider.tryGetComputeCredentials(HttpTransportFactory transportFactory) Methods in com.google.auth.oauth2 with parameters of type GoogleCredentialsModifier and TypeMethodDescriptionstatic 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.Builder.setSourceCredential(GoogleCredentials sourceCredential) Sets the required source credential used to acquire the downscoped credential.ImpersonatedCredentials.Builder.setSourceCredentials(GoogleCredentials sourceCredentials) private voidDefaultCredentialsProvider.warnAboutProblematicCredentials(GoogleCredentials credentials) Constructors in com.google.auth.oauth2 with parameters of type GoogleCredentialsModifierConstructorDescriptionprotectedBuilder(GoogleCredentials credentials) protectedBuilder(GoogleCredentials sourceCredentials, String targetPrincipal) Deprecated.
Builder(ImpersonatedCredentials)instead.