Send feedback
Class ImpersonatedCredentials.Builder (1.7.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.7.0 keyboard_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
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 ()
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
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
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-12-19 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-12-19 UTC."],[],[]]