public interface MtlsProviderBeta
Provider interface for mutual TLS. It is used in GoogleApacheHttpTransport#newTrustedTransport(MtlsProvider), GoogleApache5HttpTransport#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 | |
|---|---|
| Type | Description |
KeyStore |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
GeneralSecurityException |
|
getKeyStorePassword()
public abstract String getKeyStorePassword()The key store to use for mutual TLS.
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
boolean |
|