public class 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.
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.
Returns | |
---|---|
Type | Description |
MtlsProvider |
an instance of MtlsProvider. |
Exceptions | |
---|---|
Type | Description |
IOException |
if neither provider can be created. |
Constructors
DefaultMtlsProviderFactory()
public DefaultMtlsProviderFactory()