Package com.google.api.gax.rpc.mtls
Class MtlsProvider
- java.lang.Object
-
- com.google.api.gax.rpc.mtls.MtlsProvider
-
@BetaApi public class MtlsProvider extends java.lang.ObjectProvider class for mutual TLS. It is used to configure the mutual TLS in the transport with the default client certificate on device.
-
-
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 java.security.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 java.security.KeyStore getKeyStore() throws java.io.IOExceptionThe mutual TLS key store created with the default client certificate on device.- Throws:
java.io.IOException
-
-