Class ExternalAccountAuthorizedUserCredentials.Builder (1.31.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticclass ExternalAccountAuthorizedUserCredentials.BuilderextendsGoogleCredentials.BuilderBuilder for ExternalAccountAuthorizedUserCredentials.
Inheritance
java.lang.Object > OAuth2Credentials.Builder > GoogleCredentials.Builder > ExternalAccountAuthorizedUserCredentials.BuilderInherited Members
Constructors
Builder()
protectedBuilder()Builder(ExternalAccountAuthorizedUserCredentials credentials)
protectedBuilder(ExternalAccountAuthorizedUserCredentialscredentials)| Parameter | |
|---|---|
| Name | Description |
credentials |
ExternalAccountAuthorizedUserCredentials |
Methods
build()
publicExternalAccountAuthorizedUserCredentialsbuild()| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials |
|
setAccessToken(AccessToken accessToken)
publicExternalAccountAuthorizedUserCredentials.BuildersetAccessToken(AccessTokenaccessToken)Sets the optional access token.
| Parameter | |
|---|---|
| Name | Description |
accessToken |
AccessToken the access token |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setAudience(String audience)
publicExternalAccountAuthorizedUserCredentials.BuildersetAudience(Stringaudience)Sets the optional audience, which is usually the fully specified resource name of the workforce pool provider.
| Parameter | |
|---|---|
| Name | Description |
audience |
String the audience to set |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setClientId(String clientId)
publicExternalAccountAuthorizedUserCredentials.BuildersetClientId(StringclientId)Sets the OAuth 2.0 client ID.
| Parameter | |
|---|---|
| Name | Description |
clientId |
String the client ID |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setClientSecret(String clientSecret)
publicExternalAccountAuthorizedUserCredentials.BuildersetClientSecret(StringclientSecret)Sets the OAuth 2.0 client secret.
| Parameter | |
|---|---|
| Name | Description |
clientSecret |
String the client secret |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setHttpTransportFactory(HttpTransportFactory transportFactory)
publicExternalAccountAuthorizedUserCredentials.BuildersetHttpTransportFactory(HttpTransportFactorytransportFactory)Sets the HTTP transport factory.
| Parameter | |
|---|---|
| Name | Description |
transportFactory |
HttpTransportFactory the |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setQuotaProjectId(String quotaProjectId)
publicExternalAccountAuthorizedUserCredentials.BuildersetQuotaProjectId(StringquotaProjectId)Sets the optional project used for quota and billing purposes.
| Parameter | |
|---|---|
| Name | Description |
quotaProjectId |
String the quota and billing project id to set |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setRefreshToken(String refreshToken)
publicExternalAccountAuthorizedUserCredentials.BuildersetRefreshToken(StringrefreshToken)Sets the OAuth 2.0 refresh token.
| Parameter | |
|---|---|
| Name | Description |
refreshToken |
String the refresh token |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setRevokeUrl(String revokeUrl)
publicExternalAccountAuthorizedUserCredentials.BuildersetRevokeUrl(StringrevokeUrl)Sets the token revocation endpoint.
| Parameter | |
|---|---|
| Name | Description |
revokeUrl |
String the revoke url to set |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setTokenInfoUrl(String tokenInfoUrl)
publicExternalAccountAuthorizedUserCredentials.BuildersetTokenInfoUrl(StringtokenInfoUrl)Sets the token introspection endpoint used to retrieve account related information.
| Parameter | |
|---|---|
| Name | Description |
tokenInfoUrl |
String the token info url to set |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setTokenUrl(String tokenUrl)
publicExternalAccountAuthorizedUserCredentials.BuildersetTokenUrl(StringtokenUrl)Sets the token exchange endpoint.
| Parameter | |
|---|---|
| Name | Description |
tokenUrl |
String the token exchange url to set |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setUniverseDomain(String universeDomain)
publicExternalAccountAuthorizedUserCredentials.BuildersetUniverseDomain(StringuniverseDomain)Sets the optional universe domain. The Google Default Universe is used when not provided.
| Parameter | |
|---|---|
| Name | Description |
universeDomain |
String the universe domain to set |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |