#include <ndn-cxx/security/validator-config/checker.hpp>
Inheritance diagram for ndn::security::v2::validator_config::Checker:
Collaboration diagram for ndn::security::v2::validator_config::Checker:Classes | |
| class | Result |
Public Member Functions | |
| Checker (tlv::SignatureTypeValue sigType) | |
| virtual | ~Checker ()=default |
| Result | check (uint32_t pktType, tlv::SignatureTypeValue sigType, const Name &pktName, const Name &klName, const ValidationState &state) |
| Check if packet name and 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 Result | checkNames (const Name &pktName, const Name &klName) |
| Base version of name checking. More... | |
Static Protected Member Functions | |
| static Result | accept () |
| static NegativeResultBuilder | reject () |
Protected Attributes | |
| tlv::SignatureTypeValue | m_sigType = tlv::SignatureSha256WithEcdsa |
Definition at line 38 of file checker.hpp.
|
explicit |
Definition at line 35 of file checker.cpp.
|
virtualdefault |
|
inlinestaticprotected |
Definition at line 112 of file checker.hpp.
| Checker::Result ndn::security::v2::validator_config::Checker::check | ( | uint32_t | pktType, |
| tlv::SignatureTypeValue | sigType, | ||
| const Name & | pktName, | ||
| const Name & | klName, | ||
| const ValidationState & | state | ||
| ) |
Check if packet name and KeyLocator satisfy the checker's conditions.
| pktType | tlv::Interest or tlv::Data |
| sigType | Signature type |
| pktName | packet's name |
| klName | KeyLocator's name |
| state | Validation state |
Definition at line 73 of file checker.cpp.
|
protectedvirtual |
Base version of name checking.
Reimplemented in ndn::security::v2::validator_config::HyperRelationChecker, ndn::security::v2::validator_config::RegexChecker, and ndn::security::v2::validator_config::NameRelationChecker.
Definition at line 108 of file checker.cpp.
|
static |
Create a checker from configuration section.
| configSection | The section containing the definition of checker. |
| configFilename | The configuration file name. |
Definition at line 182 of file checker.cpp.
|
staticprotected |
Definition at line 67 of file checker.cpp.
|
protected |
Definition at line 138 of file checker.hpp.