Package com.google.auth.mtls
Class MtlsUtils
java.lang.Object
com.google.auth.mtls.MtlsUtils
Utility class for mTLS related operations.
For internal use only.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCertificatePath(EnvironmentProvider envProvider, PropertyProvider propProvider, String certConfigPathOverride) Returns the path to the client certificate file specified by the loaded workload certificate configuration.
-
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.
-