public class DefaultMtlsProviderFactory extends Object
| Constructor and Description |
|---|
DefaultMtlsProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
static MtlsProvider |
create()
Creates an instance of
MtlsProvider. |
public static MtlsProvider create() throws IOException
MtlsProvider. It first attempts to create an X509Provider. If the certificate source is unavailable, it falls back to
creating a SecureConnectProvider. If the secure connect provider also fails, it throws
a CertificateSourceUnavailableException.
This is only meant to be used internally by Google Cloud libraries, and the public facing methods may be changed without notice, and have no guarantee of backwards compatibility.
MtlsProvider.CertificateSourceUnavailableException - if neither provider can be
created.IOException - if an I/O error occurs during provider creation.Copyright © 2026 Google. All rights reserved.