22 #ifndef NDN_SECURITY_V2_VALIDATION_POLICY_CONFIG_HPP 23 #define NDN_SECURITY_V2_VALIDATION_POLICY_CONFIG_HPP 32 namespace validator_config {
48 load(
const std::string& filename);
51 load(
const std::string& input,
const std::string& filename);
54 load(std::istream& input,
const std::string& filename);
70 processConfigTrustAnchor(
const ConfigSection& section,
const std::string& filename);
73 getRefreshPeriod(ConfigSection::const_iterator& it,
const ConfigSection::const_iterator& end);
76 getDefaultRefreshPeriod();
87 std::vector<unique_ptr<Rule>> m_dataRules;
88 std::vector<unique_ptr<Rule>> m_interestRules;
99 #endif // NDN_SECURITY_V2_VALIDATION_POLICY_CONFIG_HPP The validator which can be set up via a configuration file.
Copyright (c) 2013-2017 Regents of the University of California.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
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
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)