Class TlsConfigBuilder
Defined in File config.hpp
Class Documentation
-
class TlsConfigBuilder
Builder for TlsConfig with fluent interface and validation.
Usage: auto config = TlsConfigBuilder() .with_enabled(true) .with_cert_file(“/path/to/cert.pem”) .with_key_file(“/path/to/key.pem”) .with_min_version(“1.3”) .build();
- Throws std::invalid_argument:
if configuration is invalid when build() is called
Public Functions
-
TlsConfigBuilder &with_enabled(bool enabled)
-
TlsConfigBuilder &with_cert_file(const std::string &cert_file)
-
TlsConfigBuilder &with_key_file(const std::string &key_file)
-
TlsConfigBuilder &with_ca_file(const std::string &ca_file)
-
TlsConfigBuilder &with_min_version(const std::string &min_version)