22 #ifndef NLSR_CERTIFICATE_STORE_HPP
23 #define NLSR_CERTIFICATE_STORE_HPP
29 #include <ndn-cxx/interest.hpp>
30 #include <ndn-cxx/mgmt/nfd/controller.hpp>
31 #include <ndn-cxx/security/certificate.hpp>
32 #include <ndn-cxx/security/validator-config.hpp>
52 insert(
const ndn::security::Certificate& certificate);
62 const ndn::security::Certificate*
63 find(
const ndn::Name& keyName)
const;
80 setInterestFilter(
const ndn::Name& prefix,
const bool loopback =
false);
83 registerKeyPrefixes();
86 onKeyInterest(
const ndn::Name& name,
const ndn::Interest& interest);
89 onKeyPrefixRegSuccess(
const ndn::Name& name);
92 registrationFailed(
const ndn::Name& name);
95 typedef std::map<ndn::Name, ndn::security::Certificate> CertMap;
96 CertMap m_certificates;
100 ndn::security::ValidatorConfig& m_validator;
101 ndn::util::signal::ScopedConnection m_afterSegmentValidatedConnection;
A class to house all the configuration parameters for NLSR.
Store certificates for names.
void insert(const ndn::security::Certificate &certificate)
const ndn::security::Certificate * find(const ndn::Name &keyName) const
Find a certificate.
void afterFetcherSignalEmitted(const ndn::Data &lsaSegment)
CertificateStore(ndn::Face &face, ConfParameter &confParam, Lsdb &lsdb)
void publishCertFromCache(const ndn::Name &keyName)
Retrieves the chain of certificates from Validator's cache and store them in Nlsr's own CertificateSt...
Copyright (c) 2014-2020, The University of Memphis, Regents of the University of California,...
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE