22 #ifndef NDN_CXX_SECURITY_VALIDATOR_CONFIG_FILTER_HPP
23 #define NDN_CXX_SECURITY_VALIDATOR_CONFIG_FILTER_HPP
35 class ValidationState;
37 namespace validator_config {
53 match(uint32_t pktType,
const Name& pktName,
const shared_ptr<ValidationState>& state);
63 static unique_ptr<Filter>
67 static unique_ptr<Filter>
68 createNameFilter(
const ConfigSection& configSection,
const std::string& configFilename);
72 matchName(
const Name& pktName) = 0;
100 matchName(
const Name& pktName)
override;
134 matchName(
const Name& pktName)
override;
Represents an absolute name.
Filter is one of the classes used by ValidatorConfig.
static unique_ptr< Filter > create(const ConfigSection &configSection, const std::string &configFilename)
Create a filter from the configuration section.
bool match(uint32_t pktType, const Name &pktName, const shared_ptr< ValidationState > &state)
virtual ~Filter()=default
Filter to check that packet name matches the specified regular expression.
RegexNameFilter(const Regex ®ex)
Check that name is in relation to the packet name.
RelationNameFilter(const Name &name, NameRelation relation)
boost::property_tree::ptree ConfigSection