Class DefaultMtlsProviderFactory (1.50.0)

public class DefaultMtlsProviderFactory

Inheritance

java.lang.Object > DefaultMtlsProviderFactory

Static Methods

create()

public static MtlsProvider create()

Creates an instance of MtlsProvider. It first attempts to create an com.google.auth.mtls.X509Provider. 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()