Class TlsConfigHelper

java.lang.Object
io.opentelemetry.exporter.internal.TlsConfigHelper

public class TlsConfigHelper extends Object
Utility class to help with management of TLS related components. TLS config consists keyManager, trustManager, which combine to form sslContext. These components can be configured via higher level APIs (setTrustManagerFromCerts(byte[]) and setKeyManagerFromCerts(byte[], byte[])) which parse keys in PEM format, or the lower level API setSslContext(SSLContext, X509TrustManager) in which the components are directly set, but NOT both. Attempts to reconfigure components which have already been configured throw IllegalStateException. Consumers access components via any combination of getKeyManager(), getTrustManager(), and getSslContext().

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.