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;
71 #endif // NFD_DAEMON_MGMT_COMMAND_AUTHENTICATOR_HPP
configuration file parsing utility
ndn::mgmt::Authorization makeAuthorization(const std::string &module, const std::string &verb)
Provides ControlCommand authorization according to NFD configuration file.
boost::property_tree::ptree ConfigSection
a config file section
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
static shared_ptr< CommandAuthenticator > create()
void setConfigFile(ConfigFile &configFile)