Class TlsUtil
java.lang.Object
io.opentelemetry.exporter.internal.TlsUtil
Utilities for working with TLS.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic X509KeyManagerkeyManager(byte[] privateKeyPem, byte[] certificatePem) CreatesKeyManagerinitiated by keystore containing single private key with matching certificate chain.static X509TrustManagertrustManager(byte[] trustedCertificatesPem) Returns aTrustManagerfor the given trusted certificates.
-
Method Details
-
keyManager
public static X509KeyManager keyManager(byte[] privateKeyPem, byte[] certificatePem) throws SSLException CreatesKeyManagerinitiated by keystore containing single private key with matching certificate chain.- Throws:
SSLException
-
trustManager
Returns aTrustManagerfor the given trusted certificates.- Throws:
SSLException
-