22 #ifndef NLSR_CERTIFICATE_STORE_HPP
23 #define NLSR_CERTIFICATE_STORE_HPP
25 #include <ndn-cxx/face.hpp>
26 #include <ndn-cxx/interest.hpp>
27 #include <ndn-cxx/security/certificate.hpp>
28 #include <ndn-cxx/security/validator-config.hpp>
29 #include <ndn-cxx/util/signal/scoped-connection.hpp>
51 insert(
const ndn::security::Certificate& certificate);
63 const ndn::security::Certificate*
64 find(
const ndn::Name& name)
const;
74 const ndn::security::Certificate*
75 findByKeyName(
const ndn::Name& keyName)
const;
77 const ndn::security::Certificate*
78 findByCertName(
const ndn::Name& certName)
const;
81 setInterestFilter(
const ndn::Name& prefix);
84 registerKeyPrefixes();
87 onKeyInterest(
const ndn::Name& name,
const ndn::Interest& interest);
90 onKeyPrefixRegSuccess(
const ndn::Name& name);
93 registrationFailed(
const ndn::Name& name);
96 std::map<ndn::Name, ndn::security::Certificate> m_certificates;
99 ndn::security::ValidatorConfig& m_validator;
100 ndn::signal::ScopedConnection m_afterSegmentValidatedConn;
A class to house all the configuration parameters for NLSR.
Store certificates for names.
const ndn::security::Certificate * find(const ndn::Name &name) const
Find a certificate.
void insert(const ndn::security::Certificate &certificate)
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.