public class DefaultMtlsProviderFactoryStatic Methods
create()
public static MtlsProvider create()Creates an instance of MtlsProvider. It first attempts to create an 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 SecureConnectProvider. If the secure connect provider also fails, it throws a com.google.auth.mtls.CertificateSourceUnavailableException.
| Returns | |
|---|---|
| Type | Description |
MtlsProvider |
an instance of MtlsProvider. |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
if neither provider can be created. |
Constructors
DefaultMtlsProviderFactory()
public DefaultMtlsProviderFactory()