9 #ifndef NDN_SECURITY_SEC_RULE_RELATIVE_HPP
10 #define NDN_SECURITY_SEC_RULE_RELATIVE_HPP
13 #include "../util/regex.hpp"
30 SecRuleRelative(
const std::string& dataRegex,
const std::string& signerRegex,
31 const std::string& op,
32 const std::string& dataExpand,
const std::string& signerExpand,
52 compare(
const Name& dataName,
const Name& signerName);
55 const std::string m_dataRegex;
56 const std::string m_signerRegex;
57 const std::string m_op;
58 const std::string m_dataExpand;
59 const std::string m_signerExpand;
61 Regex m_dataNameRegex;
62 Regex m_signerNameRegex;
67 #endif //NDN_SECURITY_SEC_RULE_RELATIVE_HPP
Error(const std::string &what)
virtual bool matchSignerName(const Data &data)
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()
A Name holds an array of Name::Component and represents an NDN name.
virtual bool matchDataName(const Data &data)
virtual bool satisfy(const Data &data)