ndn::security::v2::validator_config::Checker::Result Class Reference

#include <ndn-cxx/security/validator-config/checker.hpp>

Public Member Functions

const std::string & getErrorMessage () const
 Return checker error message. More...
 
 operator bool () const
 Return true if the check matches, false otherwise. More...
 

Detailed Description

Definition at line 41 of file checker.hpp.

Member Function Documentation

◆ getErrorMessage()

const std::string& ndn::security::v2::validator_config::Checker::Result::getErrorMessage ( ) const
inline

Return checker error message.

Precondition
!bool(*this)

Definition at line 59 of file checker.hpp.

◆ operator bool()

ndn::security::v2::validator_config::Checker::Result::operator bool ( ) const
inlineexplicit

Return true if the check matches, false otherwise.

Return values
falsepacket does not pass the checker.
truepacket passes the checker. Further verification may be needed.

Definition at line 49 of file checker.hpp.