public static class DownscopedCredentials.Builder extends OAuth2Credentials.BuilderMethods
build()
public DownscopedCredentials build()| Returns | |
|---|---|
| Type | Description |
DownscopedCredentials |
|
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 |
CredentialAccessBoundarythe |
| Returns | |
|---|---|
| Type | Description |
DownscopedCredentials.Builder |
this |
setHttpTransportFactory(HttpTransportFactory transportFactory)
public DownscopedCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)Sets the HTTP transport factory.
| Parameter | |
|---|---|
| Name | Description |
transportFactory |
HttpTransportFactorythe |
| Returns | |
|---|---|
| Type | Description |
DownscopedCredentials.Builder |
this |
setSourceCredential(GoogleCredentials sourceCredential)
public DownscopedCredentials.Builder setSourceCredential(GoogleCredentials sourceCredential)Sets the required source credential used to acquire the downscoped credential.
| Parameter | |
|---|---|
| Name | Description |
sourceCredential |
GoogleCredentialsthe |
| Returns | |
|---|---|
| Type | Description |
DownscopedCredentials.Builder |
this |
setUniverseDomain(String universeDomain)
public DownscopedCredentials.Builder setUniverseDomain(String universeDomain)Sets the optional universe domain.
| Parameter | |
|---|---|
| Name | Description |
universeDomain |
Stringthe universe domain to set |
| Returns | |
|---|---|
| Type | Description |
DownscopedCredentials.Builder |
this |