1 #ifndef SSLCONFIGURATIONBUILDER_H_ 2 #define SSLCONFIGURATIONBUILDER_H_ 17 m_enabled(false), m_serverCAPath(), m_serverCAFile(), m_clientCertificateFile(), m_sniHostName() {}
19 return SslConfiguration(m_enabled, m_serverCAPath, m_serverCAFile, m_clientCertificateFile, m_sniHostName);
22 m_enabled = configuration.
enabled();
71 m_serverCAPath = _CAPath;
82 m_serverCAFile = _CAFile;
93 m_clientCertificateFile = _clientCertificateFile;
105 m_sniHostName = _sniHostName;
116 return m_sniHostName;
122 std::string m_serverCAPath;
123 std::string m_serverCAFile;
124 std::string m_clientCertificateFile;
125 std::string m_sniHostName;
SslConfigurationBuilder & enabled(bool enabled)
Definition: SslConfigurationBuilder.h:58
const bool & enabled() const
Definition: SslConfiguration.h:28
virtual void validate()
Definition: SslConfigurationBuilder.h:29
const std::string & sniHostName() const
Definition: SslConfiguration.h:68
SslConfigurationBuilder & serverCAFile(const std::string &_CAFile)
Definition: SslConfigurationBuilder.h:80
SslConfigurationBuilder & enable()
Definition: SslConfigurationBuilder.h:36
Definition: SslConfigurationBuilder.h:12
const std::string & getSniHostName() const
Definition: SslConfigurationBuilder.h:114
Definition: AuthenticationConfiguration.h:10
const std::string & serverCAPath() const
Definition: SslConfiguration.h:38
SslConfigurationBuilder & disable()
Definition: SslConfigurationBuilder.h:47
Definition: SslConfiguration.h:10
const std::string & serverCAFile() const
Definition: SslConfiguration.h:48
const std::string & clientCertificateFile() const
Definition: SslConfiguration.h:58
SslConfigurationBuilder & clientCertificateFile(const std::string &_clientCertificateFile)
Definition: SslConfigurationBuilder.h:91
Definition: ConfigurationBuilder.h:111
virtual SslConfigurationBuilder & read(SslConfiguration &configuration)
Definition: SslConfigurationBuilder.h:21
Definition: ConfigurationChildBuilder.h:18
SslConfigurationBuilder(ConfigurationBuilder &parent)
Definition: SslConfigurationBuilder.h:16
SslConfigurationBuilder & sniHostName(const std::string &_sniHostName)
Definition: SslConfigurationBuilder.h:103
SslConfigurationBuilder & serverCAPath(const std::string &_CAPath)
Definition: SslConfigurationBuilder.h:69
SslConfiguration create()
Definition: SslConfigurationBuilder.h:18