NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::security::v2::validator_config::RegexNameFilter Class Reference

Filter to check that packet name matches the specified regular expression. More...

#include <filter.hpp>

Inheritance diagram for ndn::security::v2::validator_config::RegexNameFilter:
Collaboration diagram for ndn::security::v2::validator_config::RegexNameFilter:

Public Member Functions

 RegexNameFilter (const Regex &regex)
 
- Public Member Functions inherited from ndn::security::v2::validator_config::Filter
virtual ~Filter ()=default
 
bool match (uint32_t pktType, const Name &pktName)
 

Additional Inherited Members

- Static Public Member Functions inherited from ndn::security::v2::validator_config::Filter
static unique_ptr< Filtercreate (const ConfigSection &configSection, const std::string &configFilename)
 Create a filter from the configuration section. More...
 

Detailed Description

Filter to check that packet name matches the specified regular expression.

The following configuration

filter
{
type name
regex ^[^<KEY>]*<KEY><>*<ksk-.*>$
}

creates

RegexNameFilter("^[^<KEY>]*<KEY><>*<ksk-.*>$");
See also
Regex

Definition at line 123 of file filter.hpp.

Constructor & Destructor Documentation

◆ RegexNameFilter()

ndn::security::v2::validator_config::RegexNameFilter::RegexNameFilter ( const Regex regex)
explicit

Definition at line 64 of file filter.cpp.


The documentation for this class was generated from the following files:
ndn::name
Definition: name-component-types.hpp:33
ndn::security::v2::validator_config::RegexNameFilter::RegexNameFilter
RegexNameFilter(const Regex &regex)
Definition: filter.cpp:64