Class ImpersonatedCredentials.Builder (1.3.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 1.3.0keyboard_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
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 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[]]