#include <checker.hpp>


Public Member Functions | |
| virtual | ~Checker ()=default |
| bool | check (uint32_t pktType, const Name &pktName, const Name &klName, const shared_ptr< ValidationState > &state) |
| Check if packet name ane KeyLocator satisfy the checker's conditions. More... | |
Static Public Member Functions | |
| static unique_ptr< Checker > | create (const ConfigSection &configSection, const std::string &configFilename) |
| create a checker from configuration section More... | |
Protected Member Functions | |
| virtual bool | checkNames (const Name &pktName, const Name &klName, const shared_ptr< ValidationState > &state)=0 |
Definition at line 38 of file checker.hpp.
|
virtualdefault |
| bool ndn::security::v2::validator_config::Checker::check | ( | uint32_t | pktType, |
| const Name & | pktName, | ||
| const Name & | klName, | ||
| const shared_ptr< ValidationState > & | state | ||
| ) |
Check if packet name ane KeyLocator satisfy the checker's conditions.
| pktType | tlv::Interest or tlv::Data |
| pktName | packet's name |
| klName | KeyLocator's name |
| state | Validation state |
| false | data is immediately invalid. Will call state::fail() with proper code and message. |
| true | further signature verification is needed. |
Definition at line 38 of file checker.cpp.
References checkNames(), ndn::tlv::Data, ndn::Name::getPrefix(), ndn::tlv::Interest, ndn::signed_interest::MIN_SIZE, and ndn::Name::size().
|
static |
create a checker from configuration section
| configSection | The section containing the definition of checker. |
| configFilename | The configuration file name. |
Definition at line 126 of file checker.cpp.
References ndn::security::v2::validator_config::getNameRelationFromString(), ndn::security::v2::validator_config::IS_PREFIX_OF, and ns3::ndn::Name.
Referenced by ndn::security::v2::validator_config::Rule::create().
|
protectedpure virtual |