Provides ControlCommand authorization according to NFD's configuration file. More...
#include <daemon/mgmt/command-authenticator.hpp>
Public Member Functions | |
ndn::mgmt::Authorization | makeAuthorization (const std::string &module, const std::string &verb) |
Returns an Authorization function for module/verb command. More... | |
void | setConfigFile (ConfigFile &configFile) |
Static Public Member Functions | |
static shared_ptr< CommandAuthenticator > | create () |
Provides ControlCommand authorization according to NFD's configuration file.
Definition at line 41 of file command-authenticator.hpp.
|
static |
Definition at line 107 of file command-authenticator.cpp.
ndn::mgmt::Authorization nfd::CommandAuthenticator::makeAuthorization | ( | const std::string & | module, |
const std::string & | verb | ||
) |
Returns an Authorization function for module/verb
command.
module | management module name |
verb | command verb; currently ignored |
Definition at line 212 of file command-authenticator.cpp.
void nfd::CommandAuthenticator::setConfigFile | ( | ConfigFile & | configFile | ) |
Definition at line 115 of file command-authenticator.cpp.