Filter is one of the classes used by ValidatorConfig. More...
#include <filter.hpp>
Public Member Functions | |
virtual | ~Filter ()=default |
bool | match (uint32_t pktType, const Name &pktName, const shared_ptr< ValidationState > &state) |
Static Public Member Functions | |
static unique_ptr< Filter > | create (const ConfigSection &configSection, const std::string &configFilename) |
Create a filter from the configuration section. More... | |
Filter is one of the classes used by ValidatorConfig.
The ValidatorConfig class consists of a set of rules. The Filter class is a part of a rule and is used to match packet. Matched packets will be checked against the checkers defined in the rule.
Definition at line 46 of file filter.hpp.
|
virtualdefault |
bool ndn::security::v2::validator_config::Filter::match | ( | uint32_t | pktType, |
const Name & | pktName, | ||
const shared_ptr< ValidationState > & | state | ||
) |
Definition at line 38 of file filter.cpp.
References ndn::tlv::Data, ndn::Name::getPrefix(), ndn::tlv::Interest, ndn::signed_interest::MIN_SIZE, ndn::tlv::ParametersSha256DigestComponent, ndn::Name::size(), and ndn::security::V03.
|
static |
Create a filter from the configuration section.
configSection | The section containing the definition of filter. |
configFilename | The configuration file name. |
Definition at line 91 of file filter.cpp.
References ndn::security::v2::validator_config::getNameRelationFromString(), ns3::ndn::Name, NDN_THROW, and NDN_THROW_NESTED.
Referenced by ndn::security::v2::validator_config::Rule::create().