Class MtlsProvider (2.21.0)

public class MtlsProvider

Provider class for mutual TLS. It is used to configure the mutual TLS in the transport with the default client certificate on device.

Inheritance

java.lang.Object > MtlsProvider

Constructors

MtlsProvider()

public MtlsProvider()

Methods

getKeyStore()

public KeyStore getKeyStore()

The mutual TLS key store created with the default client certificate on device.

Returns
TypeDescription
KeyStore
Exceptions
TypeDescription
IOException

getMtlsEndpointUsagePolicy()

public MtlsProvider.MtlsEndpointUsagePolicy getMtlsEndpointUsagePolicy()

Returns the current mutual TLS endpoint usage policy.

Returns
TypeDescription
MtlsProvider.MtlsEndpointUsagePolicy

useMtlsClientCertificate()

public boolean useMtlsClientCertificate()

Returns if mutual TLS client certificate should be used. If the value is true, the key store from #getKeyStore() will be used to configure mutual TLS transport.

Returns
TypeDescription
boolean