26 #ifndef NFD_DAEMON_MGMT_COMMAND_AUTHENTICATOR_HPP
27 #define NFD_DAEMON_MGMT_COMMAND_AUTHENTICATOR_HPP
31 #include <ndn-cxx/mgmt/dispatcher.hpp>
32 #include <ndn-cxx/security/validator.hpp>
41 static shared_ptr<CommandAuthenticator>
52 ndn::mgmt::Authorization
62 processConfig(
const ConfigSection& section,
bool isDryRun,
const std::string& filename);
66 std::unordered_map<std::string, shared_ptr<ndn::security::Validator>> m_validators;
Provides ControlCommand authorization according to NFD configuration file.
ndn::mgmt::Authorization makeAuthorization(const std::string &module, const std::string &verb)
void setConfigFile(ConfigFile &configFile)
static shared_ptr< CommandAuthenticator > create()
configuration file parsing utility
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents,...
boost::property_tree::ptree ConfigSection
a config file section