public static class ExternalAccountAuthorizedUserCredentials.Builder extends GoogleCredentials.BuilderBuilder for ExternalAccountAuthorizedUserCredentials.
Inheritance
java.lang.Object > OAuth2Credentials.Builder > GoogleCredentials.Builder > ExternalAccountAuthorizedUserCredentials.BuilderConstructors
Builder()
protected Builder()Builder(ExternalAccountAuthorizedUserCredentials credentials)
protected Builder(ExternalAccountAuthorizedUserCredentials credentials)| Parameter | |
|---|---|
| Name | Description |
credentials |
ExternalAccountAuthorizedUserCredentials |
Methods
build()
public ExternalAccountAuthorizedUserCredentials build()| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials |
|
setAccessToken(AccessToken accessToken)
public ExternalAccountAuthorizedUserCredentials.Builder setAccessToken(AccessToken accessToken)Sets the optional access token.
| Parameter | |
|---|---|
| Name | Description |
accessToken |
AccessTokenthe access token |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setAudience(String audience)
public ExternalAccountAuthorizedUserCredentials.Builder setAudience(String audience)Sets the optional audience, which is usually the fully specified resource name of the workforce pool provider.
| Parameter | |
|---|---|
| Name | Description |
audience |
Stringthe audience to set |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setClientId(String clientId)
public ExternalAccountAuthorizedUserCredentials.Builder setClientId(String clientId)Sets the OAuth 2.0 client ID.
| Parameter | |
|---|---|
| Name | Description |
clientId |
Stringthe client ID |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setClientSecret(String clientSecret)
public ExternalAccountAuthorizedUserCredentials.Builder setClientSecret(String clientSecret)Sets the OAuth 2.0 client secret.
| Parameter | |
|---|---|
| Name | Description |
clientSecret |
Stringthe client secret |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setHttpTransportFactory(HttpTransportFactory transportFactory)
public ExternalAccountAuthorizedUserCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)Sets the HTTP transport factory.
| Parameter | |
|---|---|
| Name | Description |
transportFactory |
HttpTransportFactorythe |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setQuotaProjectId(String quotaProjectId)
public ExternalAccountAuthorizedUserCredentials.Builder setQuotaProjectId(String quotaProjectId)Sets the optional project used for quota and billing purposes.
| Parameter | |
|---|---|
| Name | Description |
quotaProjectId |
Stringthe quota and billing project id to set |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setRefreshToken(String refreshToken)
public ExternalAccountAuthorizedUserCredentials.Builder setRefreshToken(String refreshToken)Sets the OAuth 2.0 refresh token.
| Parameter | |
|---|---|
| Name | Description |
refreshToken |
Stringthe refresh token |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setRevokeUrl(String revokeUrl)
public ExternalAccountAuthorizedUserCredentials.Builder setRevokeUrl(String revokeUrl)Sets the token revocation endpoint.
| Parameter | |
|---|---|
| Name | Description |
revokeUrl |
Stringthe revoke url to set |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setTokenInfoUrl(String tokenInfoUrl)
public ExternalAccountAuthorizedUserCredentials.Builder setTokenInfoUrl(String tokenInfoUrl)Sets the token introspection endpoint used to retrieve account related information.
| Parameter | |
|---|---|
| Name | Description |
tokenInfoUrl |
Stringthe token info url to set |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setTokenUrl(String tokenUrl)
public ExternalAccountAuthorizedUserCredentials.Builder setTokenUrl(String tokenUrl)Sets the token exchange endpoint.
| Parameter | |
|---|---|
| Name | Description |
tokenUrl |
Stringthe token exchange url to set |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |
setUniverseDomain(String universeDomain)
public ExternalAccountAuthorizedUserCredentials.Builder setUniverseDomain(String universeDomain)Sets the optional universe domain. The Google Default Universe is used when not provided.
| Parameter | |
|---|---|
| Name | Description |
universeDomain |
Stringthe universe domain to set |
| Returns | |
|---|---|
| Type | Description |
ExternalAccountAuthorizedUserCredentials.Builder |
this |