Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class ServiceAccountCredentials.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 ServiceAccountCredentials . Builder extends GoogleCredentials . Builder
Constructors
Builder()
Builder(ServiceAccountCredentials credentials)
protected Builder ( ServiceAccountCredentials credentials )
Parameter
Methods
build()
public ServiceAccountCredentials build ()
Returns
Overrides
getClientEmail()
public String getClientEmail ()
Returns
getClientId()
public String getClientId ()
Returns
getDefaultScopes()
public Collection<String> getDefaultScopes ()
Returns
getHttpTransportFactory()
public HttpTransportFactory getHttpTransportFactory ()
Returns
getLifetime()
Returns
getPrivateKey()
public PrivateKey getPrivateKey ()
Returns
getPrivateKeyId()
public String getPrivateKeyId ()
Returns
getProjectId()
public String getProjectId ()
Returns
getQuotaProjectId()
public String getQuotaProjectId ()
Returns
getScopes()
public Collection<String> getScopes ()
Returns
getServiceAccountUser()
public String getServiceAccountUser ()
Returns
getTokenServerUri()
public URI getTokenServerUri ()
Returns
getUseJwtAccessWithScope()
public boolean getUseJwtAccessWithScope ()
Returns
setClientEmail(String clientEmail)
public ServiceAccountCredentials . Builder setClientEmail ( String clientEmail )
Parameter
Name
Description
clientEmail
String
Returns
setClientId(String clientId)
public ServiceAccountCredentials . Builder setClientId ( String clientId )
Parameter
Name
Description
clientId
String
Returns
setHttpTransportFactory(HttpTransportFactory transportFactory)
public ServiceAccountCredentials . Builder setHttpTransportFactory ( HttpTransportFactory transportFactory )
Parameter
Returns
setLifetime(int lifetime)
public ServiceAccountCredentials . Builder setLifetime ( int lifetime )
Parameter
Name
Description
lifetime
int
Returns
setPrivateKey(PrivateKey privateKey)
public ServiceAccountCredentials . Builder setPrivateKey ( PrivateKey privateKey )
Parameter
Returns
setPrivateKeyId(String privateKeyId)
public ServiceAccountCredentials . Builder setPrivateKeyId ( String privateKeyId )
Parameter
Name
Description
privateKeyId
String
Returns
setProjectId(String projectId)
public ServiceAccountCredentials . Builder setProjectId ( String projectId )
Parameter
Name
Description
projectId
String
Returns
setQuotaProjectId(String quotaProjectId)
public ServiceAccountCredentials . Builder setQuotaProjectId ( String quotaProjectId )
Parameter
Name
Description
quotaProjectId
String
Returns
setScopes(Collection<String> scopes)
public ServiceAccountCredentials . Builder setScopes ( Collection<String> scopes )
Parameter
Returns
setScopes(Collection<String> scopes, Collection<String> defaultScopes)
public ServiceAccountCredentials . Builder setScopes ( Collection<String> scopes , Collection<String> defaultScopes )
Parameters
Returns
setServiceAccountUser(String serviceAccountUser)
public ServiceAccountCredentials . Builder setServiceAccountUser ( String serviceAccountUser )
Parameter
Name
Description
serviceAccountUser
String
Returns
setTokenServerUri(URI tokenServerUri)
public ServiceAccountCredentials . Builder setTokenServerUri ( URI tokenServerUri )
Parameter
Name
Description
tokenServerUri
URI
Returns
setUseJwtAccessWithScope(boolean useJwtAccessWithScope)
public ServiceAccountCredentials . Builder setUseJwtAccessWithScope ( boolean useJwtAccessWithScope )
Parameter
Name
Description
useJwtAccessWithScope
boolean
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-07-02 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-07-02 UTC."],[],[]]