public abstract static class ExternalAccountCredentials.Builder extends GoogleCredentials.Builder
| Modifier and Type | Field and Description |
|---|---|
protected String |
audience |
protected String |
clientId |
protected String |
clientSecret |
protected com.google.auth.oauth2.ExternalAccountCredentials.CredentialSource |
credentialSource |
protected com.google.auth.oauth2.EnvironmentProvider |
environmentProvider |
protected String |
quotaProjectId |
protected Collection<String> |
scopes |
protected String |
serviceAccountImpersonationUrl |
protected String |
subjectTokenType |
protected String |
tokenInfoUrl |
protected String |
tokenUrl |
protected HttpTransportFactory |
transportFactory |
| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
protected |
Builder(ExternalAccountCredentials credentials) |
setAccessTokengetAccessToken, getExpirationMargin, getRefreshMargin, setExpirationMargin, setRefreshMarginprotected String audience
protected String subjectTokenType
protected String tokenUrl
protected String tokenInfoUrl
protected com.google.auth.oauth2.ExternalAccountCredentials.CredentialSource credentialSource
protected com.google.auth.oauth2.EnvironmentProvider environmentProvider
protected HttpTransportFactory transportFactory
@Nullable protected Collection<String> scopes
protected Builder()
protected Builder(ExternalAccountCredentials credentials)
public ExternalAccountCredentials.Builder setAudience(String audience)
public ExternalAccountCredentials.Builder setSubjectTokenType(String subjectTokenType)
public ExternalAccountCredentials.Builder setTokenUrl(String tokenUrl)
public ExternalAccountCredentials.Builder setTokenInfoUrl(String tokenInfoUrl)
public ExternalAccountCredentials.Builder setServiceAccountImpersonationUrl(String serviceAccountImpersonationUrl)
public ExternalAccountCredentials.Builder setCredentialSource(com.google.auth.oauth2.ExternalAccountCredentials.CredentialSource credentialSource)
public ExternalAccountCredentials.Builder setScopes(Collection<String> scopes)
public ExternalAccountCredentials.Builder setQuotaProjectId(String quotaProjectId)
public ExternalAccountCredentials.Builder setClientId(String clientId)
public ExternalAccountCredentials.Builder setClientSecret(String clientSecret)
public ExternalAccountCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)
public abstract ExternalAccountCredentials build()
build in class GoogleCredentials.BuilderCopyright © 2021 Google. All rights reserved.