Class DownscopedCredentials.Builder (1.54.0)

public static class DownscopedCredentials.Builder extends OAuth2Credentials.Builder

Inheritance

java.lang.Object > OAuth2Credentials.Builder > DownscopedCredentials.Builder

Methods

build()

public DownscopedCredentials build()
Returns
Type Description
DownscopedCredentials
Overrides

setCredentialAccessBoundary(CredentialAccessBoundary credentialAccessBoundary)

public DownscopedCredentials.Builder setCredentialAccessBoundary(CredentialAccessBoundary credentialAccessBoundary)

Sets the required credential access boundary which specifies the upper bound of permissions that the credential can access. See CredentialAccessBoundary for more information.

Parameter
Name Description
credentialAccessBoundary CredentialAccessBoundary

the CredentialAccessBoundary to set

Returns
Type Description
DownscopedCredentials.Builder

this Builder object

setHttpTransportFactory(@Nullable HttpTransportFactory transportFactory)

public DownscopedCredentials.Builder setHttpTransportFactory(@Nullable HttpTransportFactory transportFactory)

Sets the HTTP transport factory.

Parameter
Name Description
transportFactory @org.jspecify.annotations.Nullable com.google.auth.http.HttpTransportFactory

the HttpTransportFactory to set

Returns
Type Description
DownscopedCredentials.Builder

this Builder object

setSourceCredential(GoogleCredentials sourceCredential)

public DownscopedCredentials.Builder setSourceCredential(GoogleCredentials sourceCredential)

Sets the required source credential used to acquire the downscoped credential.

Parameter
Name Description
sourceCredential GoogleCredentials

the GoogleCredentials to set

Returns
Type Description
DownscopedCredentials.Builder

this Builder object

setUniverseDomain(@Nullable String universeDomain)

public DownscopedCredentials.Builder setUniverseDomain(@Nullable String universeDomain)

Sets the optional universe domain.

Parameter
Name Description
universeDomain @org.jspecify.annotations.Nullable java.lang.String

the universe domain to set

Returns
Type Description
DownscopedCredentials.Builder

this Builder object