7 #ifndef CTRL_AGENT_CFG_MGR_H 8 #define CTRL_AGENT_CFG_MGR_H 14 #include <boost/pointer_cast.hpp> 69 const std::string& service);
108 auth_config_ = auth_config;
117 return (auth_config_);
132 return (trust_anchor_);
168 cert_required_ = required;
176 return (cert_required_);
183 return (hooks_config_);
190 return (hooks_config_);
220 std::map<std::string, isc::data::ConstElementPtr> ctrl_sockets_;
223 std::string http_host_;
230 std::string trust_anchor_;
233 std::string cert_file_;
236 std::string key_file_;
267 return (boost::dynamic_pointer_cast<CtrlAgentCfgContext>(
getContext()));
276 virtual std::string getConfigSummary(
const uint32_t selection)
override;
307 std::list<std::list<std::string>> jsonPathsToRedact()
const final override;
316 #endif // CTRL_AGENT_CFG_MGR_H
data::ConstElementPtr getContext() const
Returns const pointer to the user context.
const isc::http::HttpAuthConfigPtr & getAuthConfig() const
Returns HTTP authentication configuration.
std::string getControlSocketInfoSummary() const
Returns socket configuration summary in a textual format.
Base class for all configurations.
std::string getHttpHost() const
Returns http-host parameter.
boost::shared_ptr< Element > ElementPtr
virtual process::ConfigPtr clone()
Creates a clone of this context object.
Wrapper class that holds hooks libraries configuration.
boost::shared_ptr< CtrlAgentCfgMgr > CtrlAgentCfgMgrPtr
Defines a shared pointer to CtrlAgentCfgMgr.
uint16_t getHttpPort() const
Returns the TCP post the HTTP server will listen on.
isc::data::ConstElementPtr getControlSocketInfo(const std::string &service) const
Returns information about control socket.
void setCertRequired(bool required)
Sets cert-required parameter.
void setKeyFile(const std::string &key)
Sets key-file parameter.
CtrlAgentCfgContext()
Default constructor.
void setHttpHost(const std::string &host)
Sets http-host parameter.
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
boost::shared_ptr< const Element > ConstElementPtr
bool getCertRequired() const
Returns cert-required parameter.
Defines the logger used by the top-level component of kea-lfc.
void setControlSocketInfo(const isc::data::ConstElementPtr &control_socket, const std::string &service)
Sets information about the control socket.
void setAuthConfig(const isc::http::HttpAuthConfigPtr &auth_config)
Sets HTTP authentication configuration.
void setHttpPort(const uint16_t port)
Sets http port.
const isc::hooks::HooksConfig & getHooksConfig() const
Returns const reference to configured hooks libraries.
Ctrl Agent Configuration Manager.
void setCertFile(const std::string &cert)
Sets cert-file parameter.
std::string getCertFile() const
Returns cert-file parameter.
isc::hooks::HooksConfig & getHooksConfig()
Returns non-const reference to configured hooks libraries.
std::string getKeyFile() const
Returns key-file parameter.
void setTrustAnchor(const std::string &ca)
Sets trust-anchor parameter.
boost::shared_ptr< CtrlAgentCfgContext > CtrlAgentCfgContextPtr
Pointer to a configuration context.
std::string getTrustAnchor() const
Returns trust-anchor parameter.
CtrlAgentCfgContextPtr getCtrlAgentCfgContext()
Convenience method that returns the Control Agent configuration context.
Control Agent Configuration Context.
boost::shared_ptr< HttpAuthConfig > HttpAuthConfigPtr
Type of shared pointers to HTTP authentication configuration.
boost::shared_ptr< ConfigBase > ConfigPtr
Non-const pointer to the ConfigBase.