Package | Description |
---|---|
com.google.auth.oauth2 |
Modifier and Type | Field and Description |
---|---|
protected HttpTransportFactory |
ExternalAccountCredentials.transportFactory |
protected HttpTransportFactory |
ExternalAccountCredentials.Builder.transportFactory |
Modifier and Type | Method and Description |
---|---|
HttpTransportFactory |
ImpersonatedCredentials.Builder.getHttpTransportFactory() |
HttpTransportFactory |
ServiceAccountCredentials.Builder.getHttpTransportFactory() |
HttpTransportFactory |
ComputeEngineCredentials.Builder.getHttpTransportFactory() |
HttpTransportFactory |
GdchCredentials.Builder.getHttpTransportFactory() |
HttpTransportFactory |
UserCredentials.Builder.getHttpTransportFactory() |
HttpTransportFactory |
UserAuthorizer.Builder.getHttpTransportFactory() |
HttpTransportFactory |
GdchCredentials.getTransportFactory() |
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 ImpersonatedCredentials |
ImpersonatedCredentials.create(GoogleCredentials sourceCredentials,
String targetPrincipal,
List<String> delegates,
List<String> scopes,
int lifetime,
HttpTransportFactory transportFactory,
String quotaProjectId) |
static ImpersonatedCredentials |
ImpersonatedCredentials.create(GoogleCredentials sourceCredentials,
String targetPrincipal,
List<String> delegates,
List<String> scopes,
int lifetime,
HttpTransportFactory transportFactory,
String quotaProjectId,
String iamEndpointOverride) |
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 GoogleCredentials |
GoogleCredentials.fromStream(InputStream credentialsStream,
HttpTransportFactory transportFactory)
Returns credentials defined by a JSON file stream.
|
static ExternalAccountAuthorizedUserCredentials |
ExternalAccountAuthorizedUserCredentials.fromStream(InputStream credentialsStream,
HttpTransportFactory transportFactory)
Returns external account authorized user credentials defined by a JSON file stream.
|
static ExternalAccountCredentials |
ExternalAccountCredentials.fromStream(InputStream credentialsStream,
HttpTransportFactory transportFactory)
Returns credentials defined by a JSON file stream.
|
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 UserCredentials |
UserCredentials.fromStream(InputStream credentialsStream,
HttpTransportFactory transportFactory)
Returns credentials defined by a JSON file stream using the format supported by the Cloud SDK.
|
static GoogleCredentials |
GoogleCredentials.getApplicationDefault(HttpTransportFactory transportFactory)
Returns the Application Default Credentials.
|
DownscopedCredentials.Builder |
DownscopedCredentials.Builder.setHttpTransportFactory(HttpTransportFactory transportFactory) |
TokenVerifier.Builder |
TokenVerifier.Builder.setHttpTransportFactory(HttpTransportFactory httpTransportFactory)
Set the HttpTransportFactory used for requesting public keys from the certificate URL.
|
ExternalAccountAuthorizedUserCredentials.Builder |
ExternalAccountAuthorizedUserCredentials.Builder.setHttpTransportFactory(HttpTransportFactory transportFactory)
Sets the HTTP transport factory.
|
ImpersonatedCredentials.Builder |
ImpersonatedCredentials.Builder.setHttpTransportFactory(HttpTransportFactory transportFactory) |
ExternalAccountCredentials.Builder |
ExternalAccountCredentials.Builder.setHttpTransportFactory(HttpTransportFactory transportFactory)
Sets the HTTP transport factory, creates the transport used to get access tokens.
|
ServiceAccountCredentials.Builder |
ServiceAccountCredentials.Builder.setHttpTransportFactory(HttpTransportFactory transportFactory) |
ComputeEngineCredentials.Builder |
ComputeEngineCredentials.Builder.setHttpTransportFactory(HttpTransportFactory transportFactory) |
GdchCredentials.Builder |
GdchCredentials.Builder.setHttpTransportFactory(HttpTransportFactory transportFactory) |
UserCredentials.Builder |
UserCredentials.Builder.setHttpTransportFactory(HttpTransportFactory transportFactory) |
UserAuthorizer.Builder |
UserAuthorizer.Builder.setHttpTransportFactory(HttpTransportFactory transportFactory) |
void |
ImpersonatedCredentials.setTransportFactory(HttpTransportFactory httpTransportFactory) |
Constructor and Description |
---|
ExternalAccountCredentials(HttpTransportFactory transportFactory,
String audience,
String subjectTokenType,
String tokenUrl,
com.google.auth.oauth2.ExternalAccountCredentials.CredentialSource credentialSource,
String tokenInfoUrl,
String serviceAccountImpersonationUrl,
String quotaProjectId,
String clientId,
String clientSecret,
Collection<String> scopes)
Constructor with minimum identifying information and custom HTTP transport.
|
ExternalAccountCredentials(HttpTransportFactory transportFactory,
String audience,
String subjectTokenType,
String tokenUrl,
com.google.auth.oauth2.ExternalAccountCredentials.CredentialSource credentialSource,
String tokenInfoUrl,
String serviceAccountImpersonationUrl,
String quotaProjectId,
String clientId,
String clientSecret,
Collection<String> scopes,
com.google.auth.oauth2.EnvironmentProvider environmentProvider)
Constructor with minimum identifying information and custom HTTP transport.
|
Copyright © 2023 Google. All rights reserved.