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 setServiceAccountUser(String serviceAccountUser)
public ServiceAccountCredentials.Builder setProjectId(String projectId)
public ServiceAccountCredentials.Builder setTokenServerUri(URI tokenServerUri)
public ServiceAccountCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)
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 ServiceAccountCredentials build()
build
in class GoogleCredentials.Builder
Copyright © 2019 Google. All rights reserved.