public static class ImpersonatedCredentials.Builder extends GoogleCredentials.Builder
quotaProjectId
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(GoogleCredentials sourceCredentials,
String targetPrincipal) |
Modifier and Type | Method and Description |
---|---|
ImpersonatedCredentials |
build() |
Calendar |
getCalendar() |
List<String> |
getDelegates() |
HttpTransportFactory |
getHttpTransportFactory() |
int |
getLifetime() |
List<String> |
getScopes() |
GoogleCredentials |
getSourceCredentials() |
String |
getTargetPrincipal() |
ImpersonatedCredentials.Builder |
setCalendar(Calendar calendar) |
ImpersonatedCredentials.Builder |
setDelegates(List<String> delegates) |
ImpersonatedCredentials.Builder |
setHttpTransportFactory(HttpTransportFactory transportFactory) |
ImpersonatedCredentials.Builder |
setIamEndpointOverride(String iamEndpointOverride) |
ImpersonatedCredentials.Builder |
setLifetime(int lifetime) |
ImpersonatedCredentials.Builder |
setQuotaProjectId(String quotaProjectId) |
ImpersonatedCredentials.Builder |
setScopes(List<String> scopes) |
ImpersonatedCredentials.Builder |
setSourceCredentials(GoogleCredentials sourceCredentials) |
ImpersonatedCredentials.Builder |
setTargetPrincipal(String targetPrincipal) |
getQuotaProjectId, setAccessToken
getAccessToken, getExpirationMargin, getRefreshMargin, setExpirationMargin, setRefreshMargin
protected Builder()
protected Builder(GoogleCredentials sourceCredentials, String targetPrincipal)
public ImpersonatedCredentials.Builder setSourceCredentials(GoogleCredentials sourceCredentials)
public GoogleCredentials getSourceCredentials()
public ImpersonatedCredentials.Builder setTargetPrincipal(String targetPrincipal)
public String getTargetPrincipal()
public ImpersonatedCredentials.Builder setDelegates(List<String> delegates)
public ImpersonatedCredentials.Builder setScopes(List<String> scopes)
public ImpersonatedCredentials.Builder setLifetime(int lifetime)
public int getLifetime()
public ImpersonatedCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)
public HttpTransportFactory getHttpTransportFactory()
public ImpersonatedCredentials.Builder setQuotaProjectId(String quotaProjectId)
setQuotaProjectId
in class GoogleCredentials.Builder
public ImpersonatedCredentials.Builder setIamEndpointOverride(String iamEndpointOverride)
public ImpersonatedCredentials.Builder setCalendar(Calendar calendar)
public Calendar getCalendar()
public ImpersonatedCredentials build()
build
in class GoogleCredentials.Builder
Copyright © 2023 Google. All rights reserved.