public static class ImpersonatedCredentials.Builder extends GoogleCredentials.BuilderInheritance
java.lang.Object > OAuth2Credentials.Builder > GoogleCredentials.Builder > ImpersonatedCredentials.BuilderConstructors
Builder()
protected Builder()Builder(GoogleCredentials sourceCredentials, String targetPrincipal)
protected Builder(GoogleCredentials sourceCredentials, String targetPrincipal)| Name | Description |
sourceCredentials |
GoogleCredentials |
targetPrincipal |
String |
Methods
build()
public ImpersonatedCredentials build()| Type | Description |
ImpersonatedCredentials |
getDelegates()
public List<String> getDelegates()| Type | Description |
List<String> |
getHttpTransportFactory()
public HttpTransportFactory getHttpTransportFactory()| Type | Description |
HttpTransportFactory |
getLifetime()
public int getLifetime()| Type | Description |
int |
getScopes()
public List<String> getScopes()| Type | Description |
List<String> |
getSourceCredentials()
public GoogleCredentials getSourceCredentials()| Type | Description |
GoogleCredentials |
getTargetPrincipal()
public String getTargetPrincipal()| Type | Description |
String |
setDelegates(List<String> delegates)
public ImpersonatedCredentials.Builder setDelegates(List<String> delegates)| Name | Description |
delegates |
List<String> |
| Type | Description |
ImpersonatedCredentials.Builder |
setHttpTransportFactory(HttpTransportFactory transportFactory)
public ImpersonatedCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)| Name | Description |
transportFactory |
HttpTransportFactory |
| Type | Description |
ImpersonatedCredentials.Builder |
setLifetime(int lifetime)
public ImpersonatedCredentials.Builder setLifetime(int lifetime)| Name | Description |
lifetime |
int |
| Type | Description |
ImpersonatedCredentials.Builder |
setQuotaProjectId(String quotaProjectId)
public ImpersonatedCredentials.Builder setQuotaProjectId(String quotaProjectId)| Name | Description |
quotaProjectId |
String |
| Type | Description |
ImpersonatedCredentials.Builder |
setScopes(List<String> scopes)
public ImpersonatedCredentials.Builder setScopes(List<String> scopes)| Name | Description |
scopes |
List<String> |
| Type | Description |
ImpersonatedCredentials.Builder |
setSourceCredentials(GoogleCredentials sourceCredentials)
public ImpersonatedCredentials.Builder setSourceCredentials(GoogleCredentials sourceCredentials)| Name | Description |
sourceCredentials |
GoogleCredentials |
| Type | Description |
ImpersonatedCredentials.Builder |
setTargetPrincipal(String targetPrincipal)
public ImpersonatedCredentials.Builder setTargetPrincipal(String targetPrincipal)| Name | Description |
targetPrincipal |
String |
| Type | Description |
ImpersonatedCredentials.Builder |