nfd-manager-base.cpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #include "nfd-manager-base.hpp"
27 
28 namespace nfd {
29 
30 NfdManagerBase::NfdManagerBase(Dispatcher& dispatcher,
31  CommandAuthenticator& authenticator,
32  const std::string& module)
33  : ManagerBase(dispatcher, module)
34  , m_authenticator(authenticator)
35 {
36 }
37 
38 ndn::mgmt::Authorization
39 NfdManagerBase::makeAuthorization(const std::string& verb)
40 {
41  return m_authenticator.makeAuthorization(this->getModule(), verb);
42 }
43 
44 } // namespace nfd
NfdManagerBase(Dispatcher &dispatcher, CommandAuthenticator &authenticator, const std::string &module)
ndn::mgmt::Authorization makeAuthorization(const std::string &module, const std::string &verb)
provides ControlCommand authorization according to NFD configuration file
a collection of common functions shared by all NFD managers and RIB manager, such as communicating wi...
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition: algorithm.hpp:32
const std::string & getModule() const