Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class ImpersonatedCredentials.Builder (1.24.1)
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.24.1keyboard_arrow_down
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 ()
Returns
Type
Description
String
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 2025-08-01 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-01 UTC."],[],[]]