Class SecureConnectProvider

java.lang.Object
com.google.auth.mtls.SecureConnectProvider
All Implemented Interfaces:
MtlsProvider

public class SecureConnectProvider extends Object implements MtlsProvider
This class implements MtlsProvider for the Google Auth library transport layer via ContextAwareMetadataJson. This is only meant to be used internally by Google Cloud libraries, and the public facing methods may be changed without notice, and have no guarantee of backwards compatibility.

Note: This implementation is derived from the existing "MtlsProvider" found in the Gax library, with two notable differences: 1) All logic associated with parsing environment variables related to "mTLS usage" are omitted - a separate helper class will be introduced in the Gax library to serve this purpose. 2) getKeyStore throws CertificateSourceUnavailableException instead of returning "null" if this cert source is not available on the device.

Additionally, this implementation will replace the existing "MtlsProvider" in the Gax library. The Gax library version of MtlsProvider will be marked as deprecated.

  • Constructor Details

    • SecureConnectProvider

      public SecureConnectProvider()
  • Method Details