Class MtlsUtils

java.lang.Object
com.google.auth.mtls.MtlsUtils

@InternalApi public class MtlsUtils extends Object
Utility class for mTLS related operations.

For internal use only.

  • Method Details

    • getCertificatePath

      public static String getCertificatePath(EnvironmentProvider envProvider, PropertyProvider propProvider, String certConfigPathOverride) throws IOException
      Returns the path to the client certificate file specified by the loaded workload certificate configuration.
      Returns:
      The path to the certificate file.
      Throws:
      IOException - if the certificate configuration cannot be found or loaded.