| Package | Description |
|---|---|
| com.google.auth.oauth2 |
| Modifier and Type | Class and Description |
|---|---|
static class |
AwsCredentials.Builder |
static class |
IdentityPoolCredentials.Builder |
| Modifier and Type | Method and Description |
|---|---|
ExternalAccountCredentials.Builder |
ExternalAccountCredentials.Builder.setAudience(String audience)
Sets the STS audience which is usually the fully specified resource name of the
workload/workforce pool provider.
|
ExternalAccountCredentials.Builder |
ExternalAccountCredentials.Builder.setClientId(String clientId)
Sets the optional client ID of the service account from the console.
|
ExternalAccountCredentials.Builder |
ExternalAccountCredentials.Builder.setClientSecret(String clientSecret)
Sets the optional client secret of the service account from the console.
|
ExternalAccountCredentials.Builder |
ExternalAccountCredentials.Builder.setCredentialSource(com.google.auth.oauth2.ExternalAccountCredentials.CredentialSource credentialSource)
Sets the external credential source.
|
ExternalAccountCredentials.Builder |
ExternalAccountCredentials.Builder.setHttpTransportFactory(HttpTransportFactory transportFactory)
Sets the HTTP transport factory, creates the transport used to get access tokens.
|
ExternalAccountCredentials.Builder |
ExternalAccountCredentials.Builder.setQuotaProjectId(String quotaProjectId)
Sets the optional project used for quota and billing purposes.
|
ExternalAccountCredentials.Builder |
ExternalAccountCredentials.Builder.setScopes(Collection<String> scopes)
Sets the optional scopes to request during the authorization grant.
|
ExternalAccountCredentials.Builder |
ExternalAccountCredentials.Builder.setServiceAccountImpersonationUrl(String serviceAccountImpersonationUrl)
Sets the optional URL used for service account impersonation.
|
ExternalAccountCredentials.Builder |
ExternalAccountCredentials.Builder.setSubjectTokenType(String subjectTokenType)
Sets the STS subject token type based on the OAuth 2.0 token exchange spec.
|
ExternalAccountCredentials.Builder |
ExternalAccountCredentials.Builder.setTokenInfoUrl(String tokenInfoUrl)
Sets the optional endpoint used to retrieve account related information.
|
ExternalAccountCredentials.Builder |
ExternalAccountCredentials.Builder.setTokenUrl(String tokenUrl)
Sets the STS token exchange endpoint.
|
ExternalAccountCredentials.Builder |
ExternalAccountCredentials.Builder.setWorkforcePoolUserProject(String workforcePoolUserProject)
Sets the optional workforce pool user project number when the credential corresponds to a
workforce pool and not a workload identity pool.
|
| Constructor and Description |
|---|
ExternalAccountCredentials(ExternalAccountCredentials.Builder builder)
Internal constructor with minimum identifying information and custom HTTP transport.
|
Copyright © 2022 Google. All rights reserved.