Class DownscopedCredentials.Builder (1.40.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticclass DownscopedCredentials.BuilderextendsOAuth2Credentials.BuilderInherited Members
Methods
build()
publicDownscopedCredentialsbuild()| Returns | |
|---|---|
| Type | Description |
DownscopedCredentials |
|
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 |
| Returns | |
|---|---|
| Type | Description |
DownscopedCredentials.Builder |
this |
setHttpTransportFactory(HttpTransportFactory transportFactory)
publicDownscopedCredentials.BuildersetHttpTransportFactory(HttpTransportFactorytransportFactory)Sets the HTTP transport factory.
| Parameter | |
|---|---|
| Name | Description |
transportFactory |
HttpTransportFactory the |
| Returns | |
|---|---|
| Type | Description |
DownscopedCredentials.Builder |
this |
setSourceCredential(GoogleCredentials sourceCredential)
publicDownscopedCredentials.BuildersetSourceCredential(GoogleCredentialssourceCredential)Sets the required source credential used to acquire the downscoped credential.
| Parameter | |
|---|---|
| Name | Description |
sourceCredential |
GoogleCredentials the |
| Returns | |
|---|---|
| Type | Description |
DownscopedCredentials.Builder |
this |
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 |