Send feedback
Class ImpersonatedCredentials.Builder (1.6.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.6.1 keyboard_arrow_down
public static class ImpersonatedCredentials.Builder extends GoogleCredentials.Builder
Constructors
Builder()
Builder(GoogleCredentials sourceCredentials, String targetPrincipal)
protected Builder(GoogleCredentials sourceCredentials, String targetPrincipal)
Parameters
Methods
build()
public ImpersonatedCredentials build()
Returns
Overrides
getDelegates()
public List<String> getDelegates()
Returns
getHttpTransportFactory()
public HttpTransportFactory getHttpTransportFactory()
Returns
getLifetime()
Returns
getScopes()
public List<String> getScopes()
Returns
getSourceCredentials()
public GoogleCredentials getSourceCredentials()
Returns
getTargetPrincipal()
public String getTargetPrincipal()
Returns
setDelegates(List<String> delegates)
public ImpersonatedCredentials.Builder setDelegates(List<String> delegates)
Parameter
Returns
setHttpTransportFactory(HttpTransportFactory transportFactory)
public ImpersonatedCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)
Parameter
Returns
setLifetime(int lifetime)
public ImpersonatedCredentials.Builder setLifetime(int lifetime)
Parameter
Name Description lifetime
int
Returns
setQuotaProjectId(String quotaProjectId)
public ImpersonatedCredentials.Builder setQuotaProjectId(String quotaProjectId)
Parameter
Name Description quotaProjectId
String
Returns
setScopes(List<String> scopes)
public ImpersonatedCredentials.Builder setScopes(List<String> scopes)
Parameter
Returns
setSourceCredentials(GoogleCredentials sourceCredentials)
public ImpersonatedCredentials.Builder setSourceCredentials(GoogleCredentials sourceCredentials)
Parameter
Returns
setTargetPrincipal(String targetPrincipal)
public ImpersonatedCredentials.Builder setTargetPrincipal(String targetPrincipal)
Parameter
Name Description targetPrincipal
String
Returns
Send feedback
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-11-26 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-26 UTC."],[],[]]