| Package | Description |
|---|---|
| com.google.auth.oauth2 |
| Modifier and Type | Method and Description |
|---|---|
HttpTransportFactory |
UserAuthorizer.Builder.getHttpTransportFactory() |
HttpTransportFactory |
UserCredentials.Builder.getHttpTransportFactory() |
HttpTransportFactory |
ImpersonatedCredentials.Builder.getHttpTransportFactory() |
HttpTransportFactory |
ComputeEngineCredentials.Builder.getHttpTransportFactory() |
HttpTransportFactory |
ServiceAccountCredentials.Builder.getHttpTransportFactory() |
| Modifier and Type | Method and Description |
|---|---|
static ImpersonatedCredentials |
ImpersonatedCredentials.create(GoogleCredentials sourceCredentials,
String targetPrincipal,
List<String> delegates,
List<String> scopes,
int lifetime,
HttpTransportFactory transportFactory) |
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 GoogleCredentials |
GoogleCredentials.fromStream(InputStream credentialsStream,
HttpTransportFactory transportFactory)
Returns credentials defined by a JSON file stream.
|
static UserCredentials |
UserCredentials.fromStream(InputStream credentialsStream,
HttpTransportFactory transportFactory)
Returns credentials defined by a JSON file stream using the format supported by the Cloud SDK.
|
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.
|
static GoogleCredentials |
GoogleCredentials.getApplicationDefault(HttpTransportFactory transportFactory)
Returns the Application Default Credentials.
|
UserAuthorizer.Builder |
UserAuthorizer.Builder.setHttpTransportFactory(HttpTransportFactory transportFactory) |
UserCredentials.Builder |
UserCredentials.Builder.setHttpTransportFactory(HttpTransportFactory transportFactory) |
ImpersonatedCredentials.Builder |
ImpersonatedCredentials.Builder.setHttpTransportFactory(HttpTransportFactory transportFactory) |
ComputeEngineCredentials.Builder |
ComputeEngineCredentials.Builder.setHttpTransportFactory(HttpTransportFactory transportFactory) |
ServiceAccountCredentials.Builder |
ServiceAccountCredentials.Builder.setHttpTransportFactory(HttpTransportFactory transportFactory) |
Copyright © 2019 Google. All rights reserved.