public static class ServiceAccountCredentials.Builder extends GoogleCredentials.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
protected |
Builder(ServiceAccountCredentials credentials) |
setAccessTokengetAccessTokenprotected 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 setPrivateKeyId(String privateKeyId)
public ServiceAccountCredentials.Builder setScopes(Collection<String> scopes)
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)
public String getClientId()
public String getClientEmail()
public PrivateKey getPrivateKey()
public String getPrivateKeyId()
public Collection<String> getScopes()
public String getServiceAccountUser()
public String getProjectId()
public URI getTokenServerUri()
public HttpTransportFactory getHttpTransportFactory()
public String getQuotaProjectId()
public ServiceAccountCredentials build()
build in class GoogleCredentials.BuilderCopyright © 2020 Google. All rights reserved.