NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::SecRuleRelative Class Reference

#include <sec-rule-relative.hpp>

Inheritance diagram for ndn::SecRuleRelative:
Collaboration diagram for ndn::SecRuleRelative:

Classes

class  Error
 

Public Member Functions

 SecRuleRelative (const std::string &dataRegex, const std::string &signerRegex, const std::string &op, const std::string &dataExpand, const std::string &signerExpand, bool isPositive)
 
virtual ~SecRuleRelative ()
 
virtual bool matchDataName (const Data &data)
 
virtual bool matchSignerName (const Data &data)
 
virtual bool satisfy (const Data &data)
 
virtual bool satisfy (const Name &dataName, const Name &signerName)
 
- Public Member Functions inherited from ndn::SecRule
 SecRule (bool isPositive)
 
virtual ~SecRule ()
 
bool isPositive ()
 

Additional Inherited Members

- Protected Attributes inherited from ndn::SecRule
bool m_isPositive
 

Detailed Description

Definition at line 32 of file sec-rule-relative.hpp.

Constructor & Destructor Documentation

◆ SecRuleRelative()

ndn::SecRuleRelative::SecRuleRelative ( const std::string &  dataRegex,
const std::string &  signerRegex,
const std::string &  op,
const std::string &  dataExpand,
const std::string &  signerExpand,
bool  isPositive 
)

Definition at line 35 of file sec-rule-relative.cpp.

Referenced by ndn::SecRuleRelative::Error::Error().

◆ ~SecRuleRelative()

ndn::SecRuleRelative::~SecRuleRelative ( )
virtual

Definition at line 52 of file sec-rule-relative.cpp.

Referenced by ndn::SecRuleRelative::Error::Error().

Member Function Documentation

◆ matchDataName()

bool ndn::SecRuleRelative::matchDataName ( const Data data)
virtual

◆ matchSignerName()

◆ satisfy() [1/2]

◆ satisfy() [2/2]

bool ndn::SecRuleRelative::satisfy ( const Name dataName,
const Name signerName 
)
virtual

Implements ndn::SecRule.

Definition at line 83 of file sec-rule-relative.cpp.

References ndn::RegexTopMatcher::expand(), and ndn::RegexTopMatcher::match().


The documentation for this class was generated from the following files: