Package com.google.api.gax.rpc.mtls
Class MtlsProvider
- java.lang.Object
-
- com.google.api.gax.rpc.mtls.MtlsProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMtlsProvider.MtlsEndpointUsagePolicyThe policy for mutual TLS endpoint usage.
-
Constructor Summary
Constructors Constructor Description MtlsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyStoregetKeyStore()The mutual TLS key store created with the default client certificate on device.MtlsProvider.MtlsEndpointUsagePolicygetMtlsEndpointUsagePolicy()Returns the current mutual TLS endpoint usage policy.booleanuseMtlsClientCertificate()Returns if mutual TLS client certificate should be used.
-
-
-
Method Detail
-
useMtlsClientCertificate
public boolean useMtlsClientCertificate()
Returns if mutual TLS client certificate should be used. If the value is true, the key store fromgetKeyStore()will be used to configure mutual TLS transport.
-
getMtlsEndpointUsagePolicy
public MtlsProvider.MtlsEndpointUsagePolicy getMtlsEndpointUsagePolicy()
Returns the current mutual TLS endpoint usage policy.
-
getKeyStore
public KeyStore getKeyStore() throws IOException
The mutual TLS key store created with the default client certificate on device.- Throws:
IOException
-
-