Uses of Class
com.google.auth.oauth2.ServiceAccountCredentials
Packages that use ServiceAccountCredentials
-
Uses of ServiceAccountCredentials in com.google.auth.oauth2
Methods in com.google.auth.oauth2 that return ServiceAccountCredentialsModifier and TypeMethodDescriptionServiceAccountCredentials.Builder.build()
ServiceAccountCredentials.createWithCustomLifetime
(int lifetime) Clones the service account with a new lifetime value.ServiceAccountCredentials.createWithCustomRetryStrategy
(boolean defaultRetriesEnabled) Clones the service account with the specified default retries.ServiceAccountCredentials.createWithUseJwtAccessWithScope
(boolean useJwtAccessWithScope) Clones the service account with a new useJwtAccessWithScope value.(package private) static ServiceAccountCredentials
ServiceAccountCredentials.fromJson
(Map<String, Object> json, HttpTransportFactory transportFactory) Returns service account credentials defined by JSON using the format supported by the Google Developers Console.(package private) static ServiceAccountCredentials
ServiceAccountCredentials.fromPkcs8
(String privateKeyPkcs8, ServiceAccountCredentials.Builder builder) Internal constructorstatic ServiceAccountCredentials
ServiceAccountCredentials.fromPkcs8
(String clientId, String clientEmail, String privateKeyPkcs8, String privateKeyId, Collection<String> scopes) Factory with minimum identifying information using PKCS#8 for the private key.static ServiceAccountCredentials
ServiceAccountCredentials.fromPkcs8
(String clientId, String clientEmail, String privateKeyPkcs8, String privateKeyId, Collection<String> scopes, HttpTransportFactory transportFactory, URI tokenServerUri) Factory with minimum identifying information and custom transport using PKCS#8 for the private key.static ServiceAccountCredentials
ServiceAccountCredentials.fromPkcs8
(String clientId, String clientEmail, String privateKeyPkcs8, String privateKeyId, Collection<String> scopes, HttpTransportFactory transportFactory, URI tokenServerUri, String serviceAccountUser) Factory with minimum identifying information and custom transport using PKCS#8 for the private key.static ServiceAccountCredentials
ServiceAccountCredentials.fromPkcs8
(String clientId, String clientEmail, String privateKeyPkcs8, String privateKeyId, Collection<String> scopes, Collection<String> defaultScopes) Factory with minimum identifying information using PKCS#8 for the private key.static ServiceAccountCredentials
ServiceAccountCredentials.fromPkcs8
(String clientId, String clientEmail, String privateKeyPkcs8, String privateKeyId, Collection<String> scopes, Collection<String> defaultScopes, HttpTransportFactory transportFactory, URI tokenServerUri) Factory with minimum identifying information and custom transport using PKCS#8 for the private key.static ServiceAccountCredentials
ServiceAccountCredentials.fromPkcs8
(String clientId, String clientEmail, String privateKeyPkcs8, String privateKeyId, Collection<String> scopes, Collection<String> defaultScopes, HttpTransportFactory transportFactory, URI tokenServerUri, String serviceAccountUser) Factory with minimum identifying information and custom transport using PKCS#8 for the private key.static ServiceAccountCredentials
ServiceAccountCredentials.fromStream
(InputStream credentialsStream) Returns credentials defined by a Service Account key file in JSON format from the Google Developers Console.static ServiceAccountCredentials
ServiceAccountCredentials.fromStream
(InputStream credentialsStream, HttpTransportFactory transportFactory) Returns credentials defined by a Service Account key file in JSON format from the Google Developers Console.Constructors in com.google.auth.oauth2 with parameters of type ServiceAccountCredentials