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

#include <sec-rule-specific.hpp>

Inheritance diagram for ndn::SecRuleSpecific:
Collaboration diagram for ndn::SecRuleSpecific:

Public Member Functions

 SecRuleSpecific (shared_ptr< Regex > dataRegex, shared_ptr< Regex > signerRegex)
 
 SecRuleSpecific (shared_ptr< Regex > dataRegex)
 
 SecRuleSpecific (const SecRuleSpecific &rule)
 
virtual ~SecRuleSpecific ()
 
bool matchDataName (const Data &data)
 
bool matchSignerName (const Data &data)
 
bool satisfy (const Data &data)
 
bool satisfy (const Name &dataName, const Name &signerName)
 
bool isExempted () const
 
- 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 33 of file sec-rule-specific.hpp.

Constructor & Destructor Documentation

§ SecRuleSpecific() [1/3]

ndn::SecRuleSpecific::SecRuleSpecific ( shared_ptr< Regex dataRegex,
shared_ptr< Regex signerRegex 
)

Definition at line 31 of file sec-rule-specific.cpp.

§ SecRuleSpecific() [2/3]

ndn::SecRuleSpecific::SecRuleSpecific ( shared_ptr< Regex dataRegex)
explicit

Definition at line 40 of file sec-rule-specific.cpp.

§ SecRuleSpecific() [3/3]

ndn::SecRuleSpecific::SecRuleSpecific ( const SecRuleSpecific rule)
explicit

Definition at line 47 of file sec-rule-specific.cpp.

§ ~SecRuleSpecific()

virtual ndn::SecRuleSpecific::~SecRuleSpecific ( )
inlinevirtual

Definition at line 47 of file sec-rule-specific.hpp.

References matchDataName(), matchSignerName(), and satisfy().

Member Function Documentation

§ matchDataName()

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

Implements ndn::SecRule.

Definition at line 56 of file sec-rule-specific.cpp.

References ndn::Data::getName().

Referenced by satisfy(), and ~SecRuleSpecific().

§ matchSignerName()

bool ndn::SecRuleSpecific::matchSignerName ( const Data data)
virtual

§ satisfy() [1/2]

bool ndn::SecRuleSpecific::satisfy ( const Data data)
virtual

Implements ndn::SecRule.

Definition at line 90 of file sec-rule-specific.cpp.

References matchDataName(), and matchSignerName().

Referenced by ~SecRuleSpecific().

§ satisfy() [2/2]

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

Implements ndn::SecRule.

Definition at line 96 of file sec-rule-specific.cpp.

§ isExempted()

bool ndn::SecRuleSpecific::isExempted ( ) const
inline

Definition at line 62 of file sec-rule-specific.hpp.


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