NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::CommandAuthenticator Class Reference

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

#include <command-authenticator.hpp>

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

Public Member Functions

void setConfigFile (ConfigFile &configFile)
 
ndn::mgmt::Authorization makeAuthorization (const std::string &module, const std::string &verb)
 

Static Public Member Functions

static shared_ptr< CommandAuthenticatorcreate ()
 

Detailed Description

Provides ControlCommand authorization according to NFD configuration file.

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

Member Function Documentation

◆ create()

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

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

◆ setConfigFile()

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

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

References nfd::ConfigFile::addSectionHandler().

◆ 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 it's ignored
Note
This must be called before parsing configuration file

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

References ndn::Interest::getName(), nfd::getSignerFromTag(), ndn::security::v2::ValidationError::INVALID_KEY_LOCATOR, ndn::command_interest::MIN_SIZE, NFD_LOG_DEBUG, ndn::security::v2::ValidationError::NO_SIGNATURE, ndn::security::v2::ValidationError::POLICY_ERROR, ndn::Name::size(), and ndn::mgmt::STATUS403.


The documentation for this class was generated from the following files: