Package | Description |
---|---|
com.google.auth.oauth2 |
Modifier and Type | Method and Description |
---|---|
ServiceAccountCredentials |
ServiceAccountCredentials.Builder.build() |
ServiceAccountCredentials |
ServiceAccountCredentials.createWithCustomLifetime(int lifetime)
Clones the service account with a new lifetime value.
|
ServiceAccountCredentials |
ServiceAccountCredentials.createWithCustomRetryStrategy(boolean defaultRetriesEnabled)
Clones the service account with the specified default retries.
|
ServiceAccountCredentials |
ServiceAccountCredentials.createWithUseJwtAccessWithScope(boolean useJwtAccessWithScope)
Clones the service account with a new useJwtAccessWithScope value.
|
static 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,
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.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.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.
|
Constructor and Description |
---|
Builder(ServiceAccountCredentials credentials) |
Copyright © 2023 Google. All rights reserved.