17 SecRuleSpecific::SecRuleSpecific(shared_ptr<Regex> dataRegex,
18 shared_ptr<Regex> signerRegex)
20 , m_dataRegex(dataRegex)
21 , m_signerRegex(signerRegex)
27 , m_dataRegex(rule.m_dataRegex)
28 , m_signerRegex(rule.m_signerRegex)
35 return m_dataRegex->match(data.
getName());
44 Name signerName = sig.getKeyLocator().getName();
45 return m_signerRegex->match(signerName);
47 catch (std::runtime_error& e)
62 return (m_dataRegex->match(dataName) && m_signerRegex->match(signerName));
Representing of SHA256-with-RSA signature in a data packet.
bool matchDataName(const Data &data)
bool matchSignerName(const Data &data)
const Name & getName() const
A Name holds an array of Name::Component and represents an NDN name.
const Signature & getSignature() const
SecRuleSpecific(shared_ptr< Regex > dataRegex, shared_ptr< Regex > signerRegex)
bool satisfy(const Data &data)