Class ImpersonatedCredentials.Builder (1.19.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static class ImpersonatedCredentials.Builder extends GoogleCredentials.Builder
Constructors
Builder()
Builder(GoogleCredentials sourceCredentials, String targetPrincipal)
protected Builder(GoogleCredentials sourceCredentials, String targetPrincipal)
Methods
build()
public ImpersonatedCredentials build()
Overrides
getCalendar()
public Calendar getCalendar()
getDelegates()
public List<String> getDelegates()
getHttpTransportFactory()
public HttpTransportFactory getHttpTransportFactory()
getLifetime()
Returns |
---|
Type | Description |
int | |
getScopes()
public List<String> getScopes()
getSourceCredentials()
public GoogleCredentials getSourceCredentials()
getTargetPrincipal()
public String getTargetPrincipal()
setCalendar(Calendar calendar)
public ImpersonatedCredentials.Builder setCalendar(Calendar calendar)
Parameter |
---|
Name | Description |
calendar | Calendar
|
setDelegates(List<String> delegates)
public ImpersonatedCredentials.Builder setDelegates(List<String> delegates)
setHttpTransportFactory(HttpTransportFactory transportFactory)
public ImpersonatedCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)
setIamEndpointOverride(String iamEndpointOverride)
public ImpersonatedCredentials.Builder setIamEndpointOverride(String iamEndpointOverride)
Parameter |
---|
Name | Description |
iamEndpointOverride | String
|
setLifetime(int lifetime)
public ImpersonatedCredentials.Builder setLifetime(int lifetime)
Parameter |
---|
Name | Description |
lifetime | int
|
setQuotaProjectId(String quotaProjectId)
public ImpersonatedCredentials.Builder setQuotaProjectId(String quotaProjectId)
Parameter |
---|
Name | Description |
quotaProjectId | String
|
Overrides
setScopes(List<String> scopes)
public ImpersonatedCredentials.Builder setScopes(List<String> scopes)
setSourceCredentials(GoogleCredentials sourceCredentials)
public ImpersonatedCredentials.Builder setSourceCredentials(GoogleCredentials sourceCredentials)
setTargetPrincipal(String targetPrincipal)
public ImpersonatedCredentials.Builder setTargetPrincipal(String targetPrincipal)
Parameter |
---|
Name | Description |
targetPrincipal | String
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-20 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-20 UTC."}