22 #ifndef NDN_SECURITY_V2_VALIDATION_POLICY_CONFIG_HPP 23 #define NDN_SECURITY_V2_VALIDATION_POLICY_CONFIG_HPP 32 namespace validator_config {
52 load(
const std::string& filename);
59 load(
const std::string& input,
const std::string& filename);
66 load(std::istream& input,
const std::string& filename);
86 processConfigTrustAnchor(
const ConfigSection& section,
const std::string& filename);
89 getRefreshPeriod(ConfigSection::const_iterator& it,
const ConfigSection::const_iterator& end);
92 getDefaultRefreshPeriod();
103 std::vector<unique_ptr<Rule>> m_dataRules;
104 std::vector<unique_ptr<Rule>> m_interestRules;
115 #endif // NDN_SECURITY_V2_VALIDATION_POLICY_CONFIG_HPP The validator which can be set up via a configuration file.
Represents an Interest packet.
Abstraction that implements validation policy for Data and Interest packets.
std::function< void(const shared_ptr< CertificateRequest > &certRequest, const shared_ptr< ValidationState > &state)> ValidationContinuation
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
boost::property_tree::ptree ConfigSection
void checkPolicy(const Data &data, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation) override
Check data against the policy.
Represents a Data packet.
void load(const std::string &filename)
Load policy from file filename.