NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
command-authenticator.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_DAEMON_MGMT_COMMAND_AUTHENTICATOR_HPP
27
#define NFD_DAEMON_MGMT_COMMAND_AUTHENTICATOR_HPP
28
29
#include "
core/config-file.hpp
"
30
#include <ndn-cxx/mgmt/dispatcher.hpp>
31
32
namespace
ndn
{
33
namespace
security
{
34
namespace
v2 {
35
class
Validator
;
36
}
// namespace v2
37
}
// namespace security
38
}
// namespace ndn
39
40
namespace
nfd
{
41
44
class
CommandAuthenticator
:
public
enable_shared_from_this<CommandAuthenticator>, noncopyable
45
{
46
public
:
47
static
shared_ptr<CommandAuthenticator>
48
create();
49
50
void
51
setConfigFile
(
ConfigFile
& configFile);
52
58
ndn::mgmt::Authorization
59
makeAuthorization(
const
std::string& module,
const
std::string& verb);
60
61
private
:
62
CommandAuthenticator
();
63
67
void
68
processConfig(
const
ConfigSection
& section,
bool
isDryRun,
const
std::string& filename);
69
70
private
:
72
std::unordered_map<std::string, shared_ptr<ndn::security::v2::Validator>> m_validators;
73
};
74
75
}
// namespace nfd
76
77
#endif // NFD_DAEMON_MGMT_COMMAND_AUTHENTICATOR_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
nfd::CommandAuthenticator
CommandAuthenticator
Definition:
command-authenticator.cpp:44
nfd::general::setConfigFile
void setConfigFile(ConfigFile &configFile)
Definition:
general-config-section.cpp:99
nfd::ConfigFile
configuration file parsing utility
Definition:
config-file.hpp:58
config-file.hpp
websocketpp::transport::asio::socket::error::security
Catch-all error for security policy errors that don't fit in other categories.
Definition:
base.hpp:79
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::ConfigSection
boost::property_tree::ptree ConfigSection
a config file section
Definition:
ndn-l3-protocol.hpp:38
nfd::CommandAuthenticator
provides ControlCommand authorization according to NFD configuration file
Definition:
command-authenticator.hpp:44
ndn::mgmt::Authorization
std::function< void(const Name &prefix, const Interest &interest, const ControlParameters *params, const AcceptContinuation &accept, const RejectContinuation &reject)> Authorization
a function that performs authorization
Definition:
dispatcher.hpp:77
ndn::security::v2::Validator
Interface for validating data and interest packets.
Definition:
validator.hpp:61
ndnSIM
NFD
daemon
mgmt
command-authenticator.hpp
Generated on Thu Nov 2 2017 03:30:29 for ndnSIM by
1.8.11