prefix-update-processor.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22 #ifndef NLSR_UPDATE_PREFIX_UPDATE_PROCESSOR_HPP
23 #define NLSR_UPDATE_PREFIX_UPDATE_PROCESSOR_HPP
24 
25 #include "manager-base.hpp"
27 #include "test-access-control.hpp"
28 
29 #include <ndn-cxx/util/io.hpp>
30 #include <ndn-cxx/security/key-chain.hpp>
31 #include <ndn-cxx/security/v2/certificate-storage.hpp>
32 #include <ndn-cxx/util/io.hpp>
33 
34 #include <boost/property_tree/ptree.hpp>
35 #include <memory>
36 
37 namespace nlsr {
38 
39 namespace security {
40  class CertificateStore;
41 } // namespace security
42 
43 namespace update {
44 
45 typedef boost::property_tree::ptree ConfigSection;
46 
48 {
49 public:
50  PrefixUpdateProcessor(ndn::mgmt::Dispatcher& dispatcher,
51  ndn::Face& face,
52  NamePrefixList& namePrefixList,
53  Lsdb& lsdb);
54 
66  void
67  loadValidator(ConfigSection section, const std::string& filename);
68 
69  ndn::security::ValidatorConfig&
71  {
72  return m_validator;
73  }
74 
75 private:
82  ndn::mgmt::Authorization
83  makeAuthorization();
84 
85 private:
86  ndn::security::ValidatorConfig m_validator;
87 };
88 
89 } // namespace update
90 } // namespace nlsr
91 
92 #endif // NLSR_UPDATE_PREFIX_UPDATE_PROCESSOR_HPP
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
ndn::security::ValidatorConfig & getValidator()
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
boost::property_tree::ptree ConfigSection