Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ public class DefaultMtlsProviderFactory {

/**
* Creates an instance of {@link MtlsProvider}. It first attempts to create an {@link
* com.google.auth.mtls.X509Provider}, which also falls back to the GKE credential bundle when no
* certificate configuration is present. If the certificate source is unavailable, it falls back
* to creating a {@link SecureConnectProvider}. If the secure connect provider also fails, it
* throws a {@link com.google.auth.mtls.CertificateSourceUnavailableException}.
* com.google.auth.mtls.X509Provider}. If the certificate source is unavailable, it falls back to
* creating a {@link SecureConnectProvider}. If the secure connect provider also fails, it throws
* a {@link com.google.auth.mtls.CertificateSourceUnavailableException}.
*
* @return an instance of {@link MtlsProvider}.
* @throws com.google.auth.mtls.CertificateSourceUnavailableException if neither provider can be
Expand All @@ -54,7 +53,7 @@ public static MtlsProvider create() throws IOException {
// Note: The caller should handle CertificateSourceUnavailableException gracefully, since
// it is an expected error case. All other IOExceptions are unexpected and should be surfaced
// up the call stack.
MtlsProvider mtlsProvider = X509Provider.createWithGkeCredentialBundleFallback();
MtlsProvider mtlsProvider = new X509Provider();
if (mtlsProvider.isAvailable()) {
return mtlsProvider;
}
Expand Down

This file was deleted.

Loading
Loading