Class DownscopedCredentials.Builder (1.40.0)

publicstaticclass DownscopedCredentials.BuilderextendsOAuth2Credentials.Builder

Inheritance

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

Methods

build()

publicDownscopedCredentialsbuild()
Returns
Type Description
DownscopedCredentials
Overrides

setCredentialAccessBoundary(CredentialAccessBoundary credentialAccessBoundary)

publicDownscopedCredentials.BuildersetCredentialAccessBoundary(CredentialAccessBoundarycredentialAccessBoundary)

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(HttpTransportFactory transportFactory)

publicDownscopedCredentials.BuildersetHttpTransportFactory(HttpTransportFactorytransportFactory)

Sets the HTTP transport factory.

Parameter
Name Description
transportFactory HttpTransportFactory

the HttpTransportFactory to set

Returns
Type Description
DownscopedCredentials.Builder

this Builder object

setSourceCredential(GoogleCredentials sourceCredential)

publicDownscopedCredentials.BuildersetSourceCredential(GoogleCredentialssourceCredential)

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(String universeDomain)

publicDownscopedCredentials.BuildersetUniverseDomain(StringuniverseDomain)

Sets the optional universe domain.

Parameter
Name Description
universeDomain String

the universe domain to set

Returns
Type Description
DownscopedCredentials.Builder

this Builder object

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.