nfd::CommandAuthenticator Class Reference

Provides ControlCommand authorization according to NFD's configuration file. More...

#include <daemon/mgmt/command-authenticator.hpp>

+ Inheritance diagram for nfd::CommandAuthenticator:
+ Collaboration diagram for nfd::CommandAuthenticator:

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< CommandAuthenticatorcreate ()
 

Detailed Description

Provides ControlCommand authorization according to NFD's configuration file.

Definition at line 41 of file command-authenticator.hpp.

Member Function Documentation

◆ create()

shared_ptr< CommandAuthenticator > nfd::CommandAuthenticator::create ( )
static

Definition at line 107 of file command-authenticator.cpp.

◆ makeAuthorization()

ndn::mgmt::Authorization nfd::CommandAuthenticator::makeAuthorization ( const std::string &  module,
const std::string &  verb 
)

Returns an Authorization function for module/verb command.

Parameters
modulemanagement module name
verbcommand verb; currently ignored
Note
This must be called before parsing the configuration file.

Definition at line 212 of file command-authenticator.cpp.

◆ setConfigFile()

void nfd::CommandAuthenticator::setConfigFile ( ConfigFile configFile)

Definition at line 115 of file command-authenticator.cpp.