Class MtlsHttpTransportFactory (1.38.0)

publicclass MtlsHttpTransportFactoryimplementsHttpTransportFactory

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)

publicMtlsHttpTransportFactory(KeyStoremtlsKeyStore)

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()

publicNetHttpTransportcreate()

Creates a HttpTransport instance.

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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.