All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
command-interest-generator.hpp
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
22 #ifndef NDN_NFD_COMMAND_INTEREST_GENERATOR_HPP
23 #define NDN_NFD_COMMAND_INTEREST_GENERATOR_HPP
24 
25 #include <ndn-cpp/security/command-interest-preparer.hpp>
26 
27 namespace ndn {
28 
29 class KeyChain;
30 
36 public:
42  {
43  }
44 
58  void
59  generate
60  (Interest& interest, KeyChain& keyChain, const Name& certificateName,
62 };
63 
64 }
65 
66 #endif
A CommandInterestPreparer keeps track of a timestamp and prepares a command interest by adding a time...
Definition: command-interest-preparer.hpp:39
KeyChain is the main class of the security library.
Definition: key-chain.hpp:53
A Name holds an array of Name::Component and represents an NDN name.
Definition: name.hpp:40
An Interest holds a Name and other fields for an interest.
Definition: interest.hpp:43
static WireFormat * getDefaultWireFormat()
Return the default WireFormat used by default encoding and decoding methods which was set with setDef...
Definition: wire-format.cpp:34
Definition: wire-format.hpp:39
An CommandInterestGenerator keeps track of a timestamp and generates command interests according to t...
Definition: command-interest-generator.hpp:35
CommandInterestGenerator()
Create a new CommandInterestGenerator and initialize the timestamp to now.
Definition: command-interest-generator.hpp:41
void generate(Interest &interest, KeyChain &keyChain, const Name &certificateName, WireFormat &wireFormat=*WireFormat::getDefaultWireFormat())
Append a timestamp component and a random value component to interest's name.
Definition: command-interest-generator.cpp:31