ndn::security::validator_config::HyperRelationChecker Class Reference

#include <ndn-cxx/security/validator-config/checker.hpp>

+ Inheritance diagram for ndn::security::validator_config::HyperRelationChecker:
+ Collaboration diagram for ndn::security::validator_config::HyperRelationChecker:

Public Member Functions

 HyperRelationChecker (tlv::SignatureTypeValue sigType, const std::string &pktNameExpr, const std::string &pktNameExpand, const std::string &klNameExpr, const std::string &klNameExpand, const NameRelation &hyperRelation)
 
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< Checkercreate (const ConfigSection &configSection, const std::string &configFilename)
 Create a checker from configuration section. More...
 

Protected Member Functions

Result checkNames (const Name &pktName, const Name &klName) override
 Base version of name checking. More...
 

Static Protected Member Functions

static Result accept ()
 
static NegativeResultBuilder reject ()
 

Protected Attributes

tlv::SignatureTypeValue m_sigType = tlv::SignatureSha256WithEcdsa
 

Detailed Description

Definition at line 167 of file checker.hpp.

Constructor & Destructor Documentation

◆ HyperRelationChecker()

ndn::security::validator_config::HyperRelationChecker::HyperRelationChecker ( tlv::SignatureTypeValue  sigType,
const std::string &  pktNameExpr,
const std::string &  pktNameExpand,
const std::string &  klNameExpr,
const std::string &  klNameExpand,
const NameRelation hyperRelation 
)

Definition at line 144 of file checker.cpp.

Member Function Documentation

◆ accept()

static Result ndn::security::validator_config::Checker::accept ( )
inlinestaticprotectedinherited

Definition at line 110 of file checker.hpp.

◆ check()

Checker::Result ndn::security::validator_config::Checker::check ( uint32_t  pktType,
tlv::SignatureTypeValue  sigType,
const Name pktName,
const Name klName,
const ValidationState state 
)
inherited

Check if packet name and KeyLocator satisfy the checker's conditions.

Parameters
pktTypetlv::Interest or tlv::Data
sigTypeSignature type
pktNamepacket's name
klNameKeyLocator's name
stateValidation state

Definition at line 68 of file checker.cpp.

◆ checkNames()

Checker::Result ndn::security::validator_config::HyperRelationChecker::checkNames ( const Name pktName,
const Name klName 
)
overrideprotectedvirtual

Base version of name checking.

Returns
always returns accept()

Reimplemented from ndn::security::validator_config::Checker.

Definition at line 156 of file checker.cpp.

◆ create()

unique_ptr< Checker > ndn::security::validator_config::Checker::create ( const ConfigSection configSection,
const std::string &  configFilename 
)
staticinherited

Create a checker from configuration section.

Parameters
configSectionThe section containing the definition of checker.
configFilenameThe configuration file name.
Returns
a checker created from configuration

Definition at line 177 of file checker.cpp.

◆ reject()

Checker::NegativeResultBuilder ndn::security::validator_config::Checker::reject ( )
staticprotectedinherited

Definition at line 62 of file checker.cpp.

Member Data Documentation

◆ m_sigType

tlv::SignatureTypeValue ndn::security::validator_config::Checker::m_sigType = tlv::SignatureSha256WithEcdsa
protectedinherited

Definition at line 136 of file checker.hpp.