#include <checker.hpp>
Public Types | |
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 |
Public Member Functions | |
virtual | ~Checker () |
virtual int8_t | check (const Data &data)=0 |
check if data satisfies condition defined in the specific checker implementation More... | |
virtual int8_t | check (const Interest &interest)=0 |
check if interest satisfies condition defined in the specific checker implementation More... | |
Definition at line 42 of file checker.hpp.
typedef function<void(const shared_ptr<const Interest>&)> ndn::security::conf::Checker::OnInterestChecked |
Definition at line 45 of file checker.hpp.
typedef function<void(const shared_ptr<const Interest>&, const std::string&)> ndn::security::conf::Checker::OnInterestCheckFailed |
Definition at line 47 of file checker.hpp.
typedef function<void(const shared_ptr<const Data>&)> ndn::security::conf::Checker::OnDataChecked |
Definition at line 48 of file checker.hpp.
typedef function<void(const shared_ptr<const Data>&, const std::string&)> ndn::security::conf::Checker::OnDataCheckFailed |
Definition at line 49 of file checker.hpp.
anonymous enum |
Enumerator | |
---|---|
INTEREST_SIG_VALUE | |
INTEREST_SIG_INFO |
Definition at line 51 of file checker.hpp.
|
inlinevirtual |
Definition at line 58 of file checker.hpp.
References check().
|
pure virtual |
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. |
Implemented in ndn::security::conf::FixedSignerChecker, and ndn::security::conf::CustomizedChecker.
Referenced by ndn::security::conf::CustomizedChecker::check(), ndn::security::conf::FixedSignerChecker::check(), and ~Checker().
|
pure virtual |
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. |
Implemented in ndn::security::conf::FixedSignerChecker, and ndn::security::conf::CustomizedChecker.