NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::security::conf::FixedSignerChecker Class Reference

#include <checker.hpp>

Inheritance diagram for ndn::security::conf::FixedSignerChecker:
Collaboration diagram for ndn::security::conf::FixedSignerChecker:

Public Member Functions

 FixedSignerChecker (uint32_t sigType, const std::vector< shared_ptr< v1::IdentityCertificate >> &signers)
 
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
 

Detailed Description

Definition at line 197 of file checker.hpp.

Constructor & Destructor Documentation

◆ FixedSignerChecker()

ndn::security::conf::FixedSignerChecker::FixedSignerChecker ( uint32_t  sigType,
const std::vector< shared_ptr< v1::IdentityCertificate >> &  signers 
)
inline

Member Function Documentation

◆ check() [1/2]

virtual int8_t ndn::security::conf::FixedSignerChecker::check ( const Data data)
inlineoverridevirtual

check if data satisfies condition defined in the specific checker implementation

Parameters
dataData packet
Return values
-1if data is immediately invalid
1if data is immediately valid
0if further signature verification is needed.

Implements ndn::security::conf::Checker.

Definition at line 215 of file checker.hpp.

References ndn::security::conf::Checker::check(), and ndn::Data::getSignature().

◆ check() [2/2]

virtual int8_t ndn::security::conf::FixedSignerChecker::check ( const Interest interest)
inlineoverridevirtual

check if interest satisfies condition defined in the specific checker implementation

Parameters
interestInterest packet
Return values
-1if interest is immediately invalid
1if interest is immediately valid
0if further signature verification is needed.

Implements ndn::security::conf::Checker.

Definition at line 221 of file checker.hpp.

References ndn::security::conf::Checker::check(), ndn::tlv::DigestSha256, ndn::Signature::getKeyLocator(), ndn::KeyLocator::getName(), 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, ndn::tlv::SignatureSha256WithRsa, and ndn::security::Validator::verifySignature().


The documentation for this class was generated from the following file: