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>
34#include <unordered_map>
44 static shared_ptr<CommandAuthenticator>
55 ndn::mgmt::Authorization
65 processConfig(
const ConfigSection& section,
bool isDryRun,
const std::string& filename);
69 std::unordered_map<std::string, shared_ptr<ndn::security::Validator>> m_validators;
Provides ControlCommand authorization according to NFD's configuration file.
ndn::mgmt::Authorization makeAuthorization(const std::string &module, const std::string &verb)
Returns an Authorization function for module/verb command.
void setConfigFile(ConfigFile &configFile)
static shared_ptr< CommandAuthenticator > create()
Configuration file parsing utility.
boost::property_tree::ptree ConfigSection
A configuration file section.