Class MtlsHttpTransportFactory (1.35.0)

public class MtlsHttpTransportFactory implements HttpTransportFactory

An HttpTransportFactory that creates NetHttpTransport instances configured for mTLS (mutual TLS) using a specific KeyStore containing the client's certificate and private key.

Warning: This class is considered internal and is not intended for direct use by library consumers. Its API and behavior may change without notice.

Inheritance

java.lang.Object > MtlsHttpTransportFactory

Constructors

MtlsHttpTransportFactory(KeyStore mtlsKeyStore)

public MtlsHttpTransportFactory(KeyStore mtlsKeyStore)

Constructs a factory for mTLS transports.

Parameter
Name Description
mtlsKeyStore KeyStore

The KeyStore containing the client's X509 certificate and private key. This KeyStore is used for client authentication during the TLS handshake. Must not be null.

Methods

create()

public NetHttpTransport create()

Creates a HttpTransport instance.

Returns
Type Description
com.google.api.client.http.javanet.NetHttpTransport