public static class DownscopedCredentials.Builder extends OAuth2Credentials.Builder
| Modifier and Type | Method and Description |
|---|---|
DownscopedCredentials |
build() |
DownscopedCredentials.Builder |
setCredentialAccessBoundary(CredentialAccessBoundary credentialAccessBoundary)
Sets the required credential access boundary which specifies the upper bound of permissions
that the credential can access.
|
DownscopedCredentials.Builder |
setHttpTransportFactory(HttpTransportFactory transportFactory)
Sets the HTTP transport factory.
|
DownscopedCredentials.Builder |
setSourceCredential(GoogleCredentials sourceCredential)
Sets the required source credential used to acquire the downscoped credential.
|
DownscopedCredentials.Builder |
setUniverseDomain(String universeDomain)
Sets the optional universe domain.
|
getAccessToken, getExpirationMargin, getRefreshMargin, setAccessToken, setExpirationMargin, setRefreshMargin@CanIgnoreReturnValue public DownscopedCredentials.Builder setSourceCredential(GoogleCredentials sourceCredential)
sourceCredential - the GoogleCredentials to setBuilder object@CanIgnoreReturnValue public DownscopedCredentials.Builder setCredentialAccessBoundary(CredentialAccessBoundary credentialAccessBoundary)
CredentialAccessBoundary for more information.credentialAccessBoundary - the CredentialAccessBoundary to setBuilder object@CanIgnoreReturnValue public DownscopedCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)
transportFactory - the HttpTransportFactory to setBuilder object@CanIgnoreReturnValue public DownscopedCredentials.Builder setUniverseDomain(String universeDomain)
universeDomain - the universe domain to setBuilder objectpublic DownscopedCredentials build()
build in class OAuth2Credentials.BuilderCopyright © 2024 Google. All rights reserved.