#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, const OnDataChecked &onValidated, const OnDataCheckFailed &onValidationFailed)=0 |
check if data satisfies condition defined in the specific checker implementation More... | |
virtual int8_t | check (const Interest &interest, const OnInterestChecked &onValidated, const OnInterestCheckFailed &onValidationFailed)=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 |
onValidated | Callback function which is called when data is immediately valid |
onValidationFailed | Call function which is called when data is immediately invalid |
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 |
onValidated | Callback function which is called when interest is immediately valid |
onValidationFailed | Call function which is called when interest is immediately invalid |
Implemented in ndn::security::conf::FixedSignerChecker, and ndn::security::conf::CustomizedChecker.