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
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
Enumerations
+
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
+
Enumerator
a
d
e
f
i
k
l
n
p
r
s
u
w
+
Related Functions
b
c
d
e
f
g
i
k
l
m
n
o
p
s
v
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
u
v
w
+
Functions
c
f
h
m
r
s
u
w
+
Variables
a
c
d
g
k
l
n
p
r
s
Typedefs
+
Macros
b
d
e
f
i
l
m
n
p
r
s
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
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
#include <ndn-cxx/security/command-interest-validator.hpp>
32
#include <ndn-cxx/security/public-key.hpp>
33
34
namespace
nfd
{
35
38
class
CommandAuthenticator
:
public
enable_shared_from_this<CommandAuthenticator>, noncopyable
39
{
40
public
:
41
static
shared_ptr<CommandAuthenticator>
42
create
();
43
44
void
45
setConfigFile
(
ConfigFile
& configFile);
46
52
ndn::mgmt::Authorization
53
makeAuthorization
(
const
std::string& module,
const
std::string& verb);
54
55
private
:
56
CommandAuthenticator
();
57
61
void
62
processConfig(
const
ConfigSection
& section,
bool
isDryRun,
const
std::string& filename);
63
64
static
std::pair<bool, Name>
65
extractKeyName(
const
Interest
& interest);
66
67
private
:
68
struct
AuthorizedCerts
69
{
70
bool
allowAny =
false
;
71
std::unordered_map<Name, ndn::PublicKey> certs;
72
};
73
std::unordered_map<std::string, AuthorizedCerts> m_moduleAuth;
74
75
ndn::security::CommandInterestValidator
m_validator;
76
};
77
78
}
// namespace nfd
79
80
#endif // NFD_DAEMON_MGMT_COMMAND_AUTHENTICATOR_HPP
nfd::ConfigFile
configuration file parsing utility
Definition:
config-file.hpp:50
ndn::Interest
represents an Interest packet
Definition:
interest.hpp:42
config-file.hpp
nfd::CommandAuthenticator::setConfigFile
void setConfigFile(ConfigFile &configFile)
Definition:
command-authenticator.cpp:53
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::CommandAuthenticator::makeAuthorization
ndn::mgmt::Authorization makeAuthorization(const std::string &module, const std::string &verb)
Definition:
command-authenticator.cpp:150
nfd::ConfigSection
boost::property_tree::ptree ConfigSection
Definition:
ndn-l3-protocol.hpp:38
nfd::CommandAuthenticator
provides ControlCommand authorization according to NFD configuration file
Definition:
command-authenticator.hpp:38
nfd::CommandAuthenticator::create
static shared_ptr< CommandAuthenticator > create()
Definition:
command-authenticator.cpp:42
ndn::security::CommandInterestValidator
a validator for stop-and-wait command Interests
Definition:
command-interest-validator.hpp:40
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
ndnSIM
NFD
daemon
mgmt
command-authenticator.hpp
Generated on Wed Jan 11 2017 18:17:15 for ndnSIM by
1.8.13