#include <checker.hpp>
Definition at line 86 of file checker.hpp.
ndn::security::v2::validator_config::NameRelationChecker::NameRelationChecker |
( |
const Name & |
name, |
|
|
const NameRelation & |
relation |
|
) |
| |
bool ndn::security::v2::validator_config::Checker::check |
( |
uint32_t |
pktType, |
|
|
const Name & |
pktName, |
|
|
const Name & |
klName, |
|
|
const shared_ptr< ValidationState > & |
state |
|
) |
| |
|
inherited |
Check if packet name ane KeyLocator satisfy the checker's conditions.
- Parameters
-
- Return values
-
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.
bool ndn::security::v2::validator_config::NameRelationChecker::checkNames |
( |
const Name & |
pktName, |
|
|
const Name & |
klName, |
|
|
const shared_ptr< ValidationState > & |
state |
|
) |
| |
|
overrideprotectedvirtual |
unique_ptr< Checker > ndn::security::v2::validator_config::Checker::create |
( |
const ConfigSection & |
configSection, |
|
|
const std::string & |
configFilename |
|
) |
| |
|
staticinherited |
create a checker from configuration section
- Parameters
-
configSection | The section containing the definition of checker. |
configFilename | The configuration file name. |
- Returns
- a checker created from configuration
Definition at line 126 of file checker.cpp.