public static class ServiceAccountCredentials.Builder extends GoogleCredentials.Builder
quotaProjectId
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ServiceAccountCredentials credentials) |
getQuotaProjectId, setAccessToken
getAccessToken, getExpirationMargin, getRefreshMargin, setExpirationMargin, setRefreshMargin
protected Builder()
protected Builder(ServiceAccountCredentials credentials)
public ServiceAccountCredentials.Builder setClientId(String clientId)
public ServiceAccountCredentials.Builder setClientEmail(String clientEmail)
public ServiceAccountCredentials.Builder setPrivateKey(PrivateKey privateKey)
public ServiceAccountCredentials.Builder setPrivateKeyString(String privateKeyPkcs8) throws IOException
IOException
public ServiceAccountCredentials.Builder setPrivateKeyId(String privateKeyId)
public ServiceAccountCredentials.Builder setScopes(Collection<String> scopes)
public ServiceAccountCredentials.Builder setScopes(Collection<String> scopes, Collection<String> defaultScopes)
public ServiceAccountCredentials.Builder setServiceAccountUser(String serviceAccountUser)
public ServiceAccountCredentials.Builder setProjectId(String projectId)
public ServiceAccountCredentials.Builder setTokenServerUri(URI tokenServerUri)
public ServiceAccountCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)
public ServiceAccountCredentials.Builder setQuotaProjectId(String quotaProjectId)
setQuotaProjectId
in class GoogleCredentials.Builder
public ServiceAccountCredentials.Builder setLifetime(int lifetime)
public ServiceAccountCredentials.Builder setUseJwtAccessWithScope(boolean useJwtAccessWithScope)
public ServiceAccountCredentials.Builder setDefaultRetriesEnabled(boolean defaultRetriesEnabled)
public String getClientId()
public String getClientEmail()
public PrivateKey getPrivateKey()
public String getPrivateKeyId()
public Collection<String> getScopes()
public Collection<String> getDefaultScopes()
public String getServiceAccountUser()
public String getProjectId()
public URI getTokenServerUri()
public HttpTransportFactory getHttpTransportFactory()
public int getLifetime()
public boolean getUseJwtAccessWithScope()
public boolean isDefaultRetriesEnabled()
public ServiceAccountCredentials build()
build
in class GoogleCredentials.Builder
Copyright © 2023 Google. All rights reserved.