security: Enable load of ValidatorConf from a boost::property_tree section
The functionality was already there, but was marked private.
This commit makes this function a public interface of ValidatorConf.
Change-Id: I5de598bc43949685963bff979959775733c3a639
diff --git a/src/security/validator-config.hpp b/src/security/validator-config.hpp
index acc85f5..feea4bf 100644
--- a/src/security/validator-config.hpp
+++ b/src/security/validator-config.hpp
@@ -47,6 +47,10 @@
void
load(std::istream& input, const std::string& filename);
+ void
+ load(const security::conf::ConfigSection& configSection,
+ const std::string& filename);
+
protected:
virtual void
checkPolicy(const Data& data,
@@ -87,10 +91,6 @@
const OnFailed& onValidationFailed);
void
- process(const security::conf::ConfigSection& configSection,
- const std::string& filename);
-
- void
onConfigRule(const security::conf::ConfigSection& section,
const std::string& filename);