public static class ServiceAccountCredentials.Builder extends GoogleCredentials.Builder
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ServiceAccountCredentials credentials) |
setAccessToken
getAccessToken
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 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)
public ServiceAccountCredentials.Builder setLifetime(int lifetime)
public ServiceAccountCredentials.Builder setUseJwtAccessWithScope(boolean useJwtAccessWithScope)
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 String getQuotaProjectId()
public int getLifetime()
public boolean getUseJwtAccessWithScope()
public ServiceAccountCredentials build()
build
in class GoogleCredentials.Builder
Copyright © 2021 Google. All rights reserved.