NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
command-options.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22 #ifndef NDN_MGMT_NFD_COMMAND_OPTIONS_HPP
23 #define NDN_MGMT_NFD_COMMAND_OPTIONS_HPP
24 
25 #include "../../security/signing-info.hpp"
26 
27 #define NDN_MGMT_NFD_COMMAND_OPTIONS_KEEP_DEPRECATED_SIGNING_PARAMS
28 
29 namespace ndn {
30 
31 namespace security {
32 namespace v1 {
34 } // namespace v1
35 } // namespace security
36 
37 namespace nfd {
38 
44 {
45 public:
52 
55  const time::milliseconds&
56  getTimeout() const
57  {
58  return m_timeout;
59  }
60 
67  setTimeout(const time::milliseconds& timeout);
68 
71  const Name&
72  getPrefix() const
73  {
74  return m_prefix;
75  }
76 
81  setPrefix(const Name& prefix);
82 
87  {
88  return m_signingInfo;
89  }
90 
95  setSigningInfo(const security::SigningInfo& signingInfo);
96 
97 #ifdef NDN_MGMT_NFD_COMMAND_OPTIONS_KEEP_DEPRECATED_SIGNING_PARAMS
98 public: // signing parameters
111  SIGNING_PARAMS_CERTIFICATE
112  };
113 
117  DEPRECATED(
119  getSigningParamsKind() const);
120 
125  DEPRECATED(
126  const Name&
127  getSigningIdentity() const);
128 
133  DEPRECATED(
134  const Name&
135  getSigningCertificate() const);
136 
142  DEPRECATED(
144  setSigningDefault());
145 
152  DEPRECATED(
154  setSigningIdentity(const Name& identityName));
155 
164  DEPRECATED(
166  setSigningCertificate(const Name& certificateName));
167 
172  DEPRECATED(
174  setSigningCertificate(const security::v1::IdentityCertificate& certificate));
175 
176 #endif // NDN_MGMT_NFD_COMMAND_OPTIONS_KEEP_DEPRECATED_SIGNING_PARAMS
177 
178 public:
181  static const time::milliseconds DEFAULT_TIMEOUT;
182 
185  static const Name DEFAULT_PREFIX;
186 
187 private:
188  time::milliseconds m_timeout;
189  Name m_prefix;
190  security::SigningInfo m_signingInfo;
191 };
192 
193 } // namespace nfd
194 } // namespace ndn
195 
196 #endif // NDN_MGMT_NFD_COMMAND_OPTIONS_HPP
Copyright (c) 2011-2015 Regents of the University of California.
const security::SigningInfo & getSigningInfo() const
picks the default certificate of a specific identity Name
const time::milliseconds & getTimeout() const
static const Name DEFAULT_PREFIX
gives the default command prefix: ndn:/localhost/nfd
Signing parameters passed to KeyChain.
contains options for ControlCommand execution
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
Name abstraction to represent an absolute name.
Definition: name.hpp:46
const Name & getPrefix() const
picks the default signing identity and certificate
static const time::milliseconds DEFAULT_TIMEOUT
gives the default command timeout: 10000ms
SigningParamsKind
indicates the selection of signing parameters
#define DEPRECATED(func)
Definition: common.hpp:71