Interface MtlsProvider (2.1.0)

public interface MtlsProvider

Beta
Provider interface for mutual TLS. It is used in GoogleApacheHttpTransport#newTrustedTransport(MtlsProvider) and GoogleNetHttpTransport#newTrustedTransport(MtlsProvider) to configure the mutual TLS in the transport.

Methods

getKeyStore()

public abstract KeyStore getKeyStore()

The password for mutual TLS key store.

Returns
TypeDescription
KeyStore
Exceptions
TypeDescription
IOException
GeneralSecurityException

getKeyStorePassword()

public abstract String getKeyStorePassword()

The key store to use for mutual TLS.

Returns
TypeDescription
String

useMtlsClientCertificate()

public abstract boolean useMtlsClientCertificate()

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

Returns
TypeDescription
boolean