#include <command-validator.hpp>
Classes | |
class | Error |
Public Member Functions | |
CommandValidator () | |
~CommandValidator () | |
void | setConfigFile (ConfigFile &configFile) |
void | onConfig (const ConfigSection §ion, bool isDryRun, const std::string &filename) |
void | addSupportedPrivilege (const std::string &privilege) |
void | addInterestRule (const std::string ®ex, const ndn::IdentityCertificate &certificate) |
void | addInterestRule (const std::string ®ex, const Name &keyName, const ndn::PublicKey &publicKey) |
void | validate (const Interest &interest, const ndn::OnInterestValidated &onValidated, const ndn::OnInterestValidationFailed &onValidationFailed) |
Definition at line 34 of file command-validator.hpp.
nfd::CommandValidator::CommandValidator | ( | ) |
Definition at line 38 of file command-validator.cpp.
nfd::CommandValidator::~CommandValidator | ( | ) |
Definition at line 43 of file command-validator.cpp.
|
inline |
Definition at line 92 of file command-validator.hpp.
|
inline |
Definition at line 99 of file command-validator.hpp.
void nfd::CommandValidator::addSupportedPrivilege | ( | const std::string & | privilege | ) |
privilege | name of privilege to add |
CommandValidator::Error | on duplicated privilege |
Definition at line 213 of file command-validator.cpp.
void nfd::CommandValidator::onConfig | ( | const ConfigSection & | section, |
bool | isDryRun, | ||
const std::string & | filename | ||
) |
section | "authorizations" section to parse |
isDryRun | true if performing a dry run of configuration, false otherwise |
filename | filename of configuration file |
ConfigFile::Error | on parse error |
Definition at line 66 of file command-validator.cpp.
References nfd::aggregateErrors(), NFD_LOG_DEBUG, NFD_LOG_INFO, and NFD_LOG_WARN.
Referenced by setConfigFile().
void nfd::CommandValidator::setConfigFile | ( | ConfigFile & | configFile | ) |
Definition at line 49 of file command-validator.cpp.
References nfd::ConfigFile::addSectionHandler(), and onConfig().
|
inline |
Definition at line 107 of file command-validator.hpp.