#include <checker.hpp>
Public Member Functions | |
CustomizedChecker (uint32_t sigType, shared_ptr< KeyLocatorChecker > keyLocatorChecker) | |
virtual int8_t | check (const Data &data) override |
check if data satisfies condition defined in the specific checker implementation More... | |
virtual int8_t | check (const Interest &interest) override |
check if interest satisfies condition defined in the specific checker implementation More... | |
Public Member Functions inherited from ndn::security::conf::Checker | |
virtual | ~Checker () |
Additional Inherited Members | |
Public Types inherited from ndn::security::conf::Checker | |
enum | { INTEREST_SIG_VALUE = -1, INTEREST_SIG_INFO = -2 } |
typedef function< void(const shared_ptr< const Interest > &)> | OnInterestChecked |
typedef function< void(const shared_ptr< const Interest > &, const std::string &)> | OnInterestCheckFailed |
typedef function< void(const shared_ptr< const Data > &)> | OnDataChecked |
typedef function< void(const shared_ptr< const Data > &, const std::string &)> | OnDataCheckFailed |
Definition at line 85 of file checker.hpp.
|
inline |
Definition at line 88 of file checker.hpp.
References ndn::tlv::DigestSha256, ndn::tlv::SignatureSha256WithEcdsa, and ndn::tlv::SignatureSha256WithRsa.
|
inlineoverridevirtual |
check if data satisfies condition defined in the specific checker implementation
data | Data packet |
-1 | if data is immediately invalid |
1 | if data is immediately valid |
0 | if further signature verification is needed. |
Implements ndn::security::conf::Checker.
Definition at line 108 of file checker.hpp.
References ndn::security::conf::Checker::check(), and ndn::Data::getSignature().
|
inlineoverridevirtual |
check if interest satisfies condition defined in the specific checker implementation
interest | Interest packet |
-1 | if interest is immediately invalid |
1 | if interest is immediately valid |
0 | if further signature verification is needed. |
Implements ndn::security::conf::Checker.
Definition at line 114 of file checker.hpp.
References ndn::security::conf::Checker::check(), ndn::tlv::DigestSha256, ndn::Signature::getKeyLocator(), ndn::Interest::getName(), ndn::Signature::getType(), ndn::Signature::hasKeyLocator(), ndn::security::conf::Checker::INTEREST_SIG_INFO, ndn::security::conf::Checker::INTEREST_SIG_VALUE, ndn::tlv::SignatureSha256WithEcdsa, and ndn::tlv::SignatureSha256WithRsa.