Package com.google.auth.oauth2
Class IdentityPoolCredentials.Builder
- java.lang.Object
-
- com.google.auth.oauth2.OAuth2Credentials.Builder
-
- com.google.auth.oauth2.GoogleCredentials.Builder
-
- com.google.auth.oauth2.ExternalAccountCredentials.Builder
-
- com.google.auth.oauth2.IdentityPoolCredentials.Builder
-
- Enclosing class:
- IdentityPoolCredentials
public static class IdentityPoolCredentials.Builder extends ExternalAccountCredentials.Builder
-
-
Field Summary
-
Fields inherited from class com.google.auth.oauth2.ExternalAccountCredentials.Builder
audience, clientId, clientSecret, credentialSource, environmentProvider, scopes, serviceAccountImpersonationOptions, serviceAccountImpersonationUrl, subjectTokenType, tokenInfoUrl, tokenUrl, transportFactory, universeDomain, workforcePoolUserProject
-
Fields inherited from class com.google.auth.oauth2.GoogleCredentials.Builder
quotaProjectId
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentityPoolCredentialsbuild()IdentityPoolCredentials.BuildersetWorkforcePoolUserProject(String workforcePoolUserProject)Sets the optional workforce pool user project number when the credential corresponds to a workforce pool and not a workload identity pool.-
Methods inherited from class com.google.auth.oauth2.ExternalAccountCredentials.Builder
setAudience, setClientId, setClientSecret, setCredentialSource, setHttpTransportFactory, setQuotaProjectId, setScopes, setServiceAccountImpersonationOptions, setServiceAccountImpersonationUrl, setSubjectTokenType, setTokenInfoUrl, setTokenUrl, setUniverseDomain
-
Methods inherited from class com.google.auth.oauth2.GoogleCredentials.Builder
getQuotaProjectId, setAccessToken
-
Methods inherited from class com.google.auth.oauth2.OAuth2Credentials.Builder
getAccessToken, getExpirationMargin, getRefreshMargin, setExpirationMargin, setRefreshMargin
-
-
-
-
Method Detail
-
setWorkforcePoolUserProject
public IdentityPoolCredentials.Builder setWorkforcePoolUserProject(String workforcePoolUserProject)
Description copied from class:ExternalAccountCredentials.BuilderSets the optional workforce pool user project number when the credential corresponds to a workforce pool and not a workload identity pool. The underlying principal must still have serviceusage.services.use IAM permission to use the project for billing/quota.- Overrides:
setWorkforcePoolUserProjectin classExternalAccountCredentials.Builder- Parameters:
workforcePoolUserProject- the workforce pool user project number to set- Returns:
- this
Builderobject
-
build
public IdentityPoolCredentials build()
- Specified by:
buildin classExternalAccountCredentials.Builder
-
-