#include <ndn-cxx/security/v2/validator-config/checker.hpp>
Definition at line 100 of file checker.hpp.
ndn::security::v2::validator_config::RegexChecker::RegexChecker |
( |
const Regex & |
regex | ) |
|
|
explicit |
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 35 of file checker.cpp.
bool ndn::security::v2::validator_config::RegexChecker::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 125 of file checker.cpp.