NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
nfd-command-options.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22 #ifndef NDN_MANAGEMENT_NFD_COMMAND_OPTIONS_HPP
23 #define NDN_MANAGEMENT_NFD_COMMAND_OPTIONS_HPP
24 
25 #include "../security/signing-info.hpp"
26 
27 #define NDN_MANAGEMENT_NFD_COMMAND_OPTIONS_KEEP_DEPRECATED_SIGNING_PARAMS
28 
29 namespace ndn {
30 
31 class IdentityCertificate;
32 
33 namespace nfd {
34 
40 {
41 public:
48 
51  const time::milliseconds&
52  getTimeout() const
53  {
54  return m_timeout;
55  }
56 
63  setTimeout(const time::milliseconds& timeout);
64 
67  const Name&
68  getPrefix() const
69  {
70  return m_prefix;
71  }
72 
77  setPrefix(const Name& prefix);
78 
83  {
84  return m_signingInfo;
85  }
86 
91  setSigningInfo(const security::SigningInfo& signingInfo);
92 
93 #ifdef NDN_MANAGEMENT_NFD_COMMAND_OPTIONS_KEEP_DEPRECATED_SIGNING_PARAMS
94 public: // signing parameters
108  };
109 
113  DEPRECATED(
115  getSigningParamsKind() const);
116 
121  DEPRECATED(
122  const Name&
123  getSigningIdentity() const);
124 
129  DEPRECATED(
130  const Name&
131  getSigningCertificate() const);
132 
138  DEPRECATED(
140  setSigningDefault());
141 
148  DEPRECATED(
150  setSigningIdentity(const Name& identityName));
151 
160  DEPRECATED(
162  setSigningCertificate(const Name& certificateName));
163 
168  DEPRECATED(
170  setSigningCertificate(const IdentityCertificate& certificate));
171 
172 #endif // NDN_MANAGEMENT_NFD_COMMAND_OPTIONS_KEEP_DEPRECATED_SIGNING_PARAMS
173 
174 public:
177  static const time::milliseconds DEFAULT_TIMEOUT;
178 
181  static const Name DEFAULT_PREFIX;
182 
183 private:
184  time::milliseconds m_timeout;
185  Name m_prefix;
186  security::SigningInfo m_signingInfo;
187 };
188 
189 } // namespace nfd
190 } // namespace ndn
191 
192 #endif // NDN_MANAGEMENT_NFD_COMMAND_OPTIONS_HPP
Copyright (c) 2011-2015 Regents of the University of California.
CommandOptions()
constructs CommandOptions
picks the default certificate of a specific identity Name
static const Name DEFAULT_PREFIX
gives the default command prefix: ndn:/localhost/nfd
const Name & getPrefix() const
Signing parameters passed to KeyChain.
CommandOptions & setTimeout(const time::milliseconds &timeout)
sets command timeout
contains options for ControlCommand execution
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:38
Name abstraction to represent an absolute name.
Definition: name.hpp:46
DEPRECATED(SigningParamsKind getSigningParamsKind() const)
CommandOptions & setSigningInfo(const security::SigningInfo &signingInfo)
sets signing parameters
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
const time::milliseconds & getTimeout() const
CommandOptions & setPrefix(const Name &prefix)
sets command prefix
const security::SigningInfo & getSigningInfo() const