public static class ServiceAccountCredentials.Builder extends GoogleCredentials.Builder
Constructors
Builder()
Builder(ServiceAccountCredentials credentials)
protected Builder(ServiceAccountCredentials credentials)
Methods
build()
public ServiceAccountCredentials build()
Overrides
getClientEmail()
public String getClientEmail()
getClientId()
public String getClientId()
getDefaultScopes()
public Collection<String> getDefaultScopes()
getHttpTransportFactory()
public HttpTransportFactory getHttpTransportFactory()
getLifetime()
Returns |
---|
Type | Description |
int | |
getPrivateKey()
public PrivateKey getPrivateKey()
getPrivateKeyId()
public String getPrivateKeyId()
getProjectId()
public String getProjectId()
getQuotaProjectId()
public String getQuotaProjectId()
getScopes()
public Collection<String> getScopes()
getServiceAccountUser()
public String getServiceAccountUser()
getTokenServerUri()
public URI getTokenServerUri()
Returns |
---|
Type | Description |
URI | |
getUseJwtAccessWithScope()
public boolean getUseJwtAccessWithScope()
isDefaultRetriesEnabled()
public boolean isDefaultRetriesEnabled()
setClientEmail(String clientEmail)
public ServiceAccountCredentials.Builder setClientEmail(String clientEmail)
Parameter |
---|
Name | Description |
clientEmail | String
|
setClientId(String clientId)
public ServiceAccountCredentials.Builder setClientId(String clientId)
Parameter |
---|
Name | Description |
clientId | String
|
setDefaultRetriesEnabled(boolean defaultRetriesEnabled)
public ServiceAccountCredentials.Builder setDefaultRetriesEnabled(boolean defaultRetriesEnabled)
Parameter |
---|
Name | Description |
defaultRetriesEnabled | boolean
|
setHttpTransportFactory(HttpTransportFactory transportFactory)
public ServiceAccountCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)
setLifetime(int lifetime)
public ServiceAccountCredentials.Builder setLifetime(int lifetime)
Parameter |
---|
Name | Description |
lifetime | int
|
setPrivateKey(PrivateKey privateKey)
public ServiceAccountCredentials.Builder setPrivateKey(PrivateKey privateKey)
setPrivateKeyId(String privateKeyId)
public ServiceAccountCredentials.Builder setPrivateKeyId(String privateKeyId)
Parameter |
---|
Name | Description |
privateKeyId | String
|
setPrivateKeyString(String privateKeyPkcs8)
public ServiceAccountCredentials.Builder setPrivateKeyString(String privateKeyPkcs8)
Parameter |
---|
Name | Description |
privateKeyPkcs8 | String
|
setProjectId(String projectId)
public ServiceAccountCredentials.Builder setProjectId(String projectId)
Parameter |
---|
Name | Description |
projectId | String
|
setQuotaProjectId(String quotaProjectId)
public ServiceAccountCredentials.Builder setQuotaProjectId(String quotaProjectId)
Parameter |
---|
Name | Description |
quotaProjectId | String
|
setScopes(Collection<String> scopes)
public ServiceAccountCredentials.Builder setScopes(Collection<String> scopes)
setScopes(Collection<String> scopes, Collection<String> defaultScopes)
public ServiceAccountCredentials.Builder setScopes(Collection<String> scopes, Collection<String> defaultScopes)
setServiceAccountUser(String serviceAccountUser)
public ServiceAccountCredentials.Builder setServiceAccountUser(String serviceAccountUser)
Parameter |
---|
Name | Description |
serviceAccountUser | String
|
setTokenServerUri(URI tokenServerUri)
public ServiceAccountCredentials.Builder setTokenServerUri(URI tokenServerUri)
Parameter |
---|
Name | Description |
tokenServerUri | URI
|
setUseJwtAccessWithScope(boolean useJwtAccessWithScope)
public ServiceAccountCredentials.Builder setUseJwtAccessWithScope(boolean useJwtAccessWithScope)
Parameter |
---|
Name | Description |
useJwtAccessWithScope | boolean
|