9 #ifndef NDN_SECURITY_VALIDATOR_NULL_HPP
10 #define NDN_SECURITY_VALIDATOR_NULL_HPP
30 std::vector<shared_ptr<ValidationRequest> >& nextSteps)
32 onValidated(data.shared_from_this());
40 std::vector<shared_ptr<ValidationRequest> >& nextSteps)
42 onValidated(interest.shared_from_this());
48 #endif //NDN_SECURITY_VALIDATOR_NULL_HPP
virtual void checkPolicy(const Data &data, int nSteps, const OnDataValidated &onValidated, const OnDataValidationFailed &onValidationFailed, std::vector< shared_ptr< ValidationRequest > > &nextSteps)
Check the Data against policy and return the next validation step if necessary.
An Interest holds a Name and other fields for an interest.
function< void(const shared_ptr< const Data > &)> OnDataValidated
Callback to report a successful Data validation.
function< void(const shared_ptr< const Data > &, const std::string &)> OnDataValidationFailed
Callback to report a failed Data validation.
function< void(const shared_ptr< const Interest > &, const std::string &)> OnInterestValidationFailed
Callback to report a failed Interest validation.
virtual void checkPolicy(const Interest &interest, int nSteps, const OnInterestValidated &onValidated, const OnInterestValidationFailed &onValidationFailed, std::vector< shared_ptr< ValidationRequest > > &nextSteps)
Check the Interest against validation policy and return the next validation step if necessary...
Validator is one of the main classes of the security library.
function< void(const shared_ptr< const Interest > &)> OnInterestValidated
Callback to report a successful Interest validation.