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/v2/certificate.hpp> 32 #include <ndn-cxx/security/validator-config.hpp> 52 insert(
const ndn::security::v2::Certificate& certificate);
62 const ndn::security::v2::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::v2::Certificate> CertMap;
96 CertMap m_certificates;
100 ndn::security::ValidatorConfig& m_validator;
101 ndn::util::signal::ScopedConnection m_afterSegmentValidatedConnection;
107 #endif // NLSR_CERTIFICATE_STORE_HPP
A class to house all the configuration parameters for NLSR.
Store certificates for names.
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
CertificateStore(ndn::Face &face, ConfParameter &confParam, Lsdb &lsdb)
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California.
void publishCertFromCache(const ndn::Name &keyName)
Retrieves the chain of certificates from Validator's cache and store them in Nlsr's own CertificateSt...
void insert(const ndn::security::v2::Certificate &certificate)
Copyright (c) 2014-2019, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
void afterFetcherSignalEmitted(const ndn::Data &lsaSegment)
const ndn::security::v2::Certificate * find(const ndn::Name &keyName) const
Find a certificate.