All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
command-interest-signer.hpp
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
23 #ifndef NDN_COMMAND_INTEREST_SIGNER_HPP
24 #define NDN_COMMAND_INTEREST_SIGNER_HPP
25 
26 #include "key-chain.hpp"
27 #include "command-interest-preparer.hpp"
28 
29 namespace ndn {
30 
39 public:
45 
46  static const int POS_SIGNATURE_VALUE = -1;
47  static const int POS_SIGNATURE_INFO = -2;
48  static const int POS_NONCE = -3;
49  static const int POS_TIMESTAMP = -4;
50 
51  static const int MINIMUM_SIZE = 4;
52 
66  ptr_lib::shared_ptr<Interest>
68  (const Name& name,
69  const SigningInfo& params = KeyChain::getDefaultSigningInfo(),
71 
72 private:
73  KeyChain& keyChain_;
74 };
75 
76 }
77 
78 #endif
CommandInterestSigner is a helper class to create command interests.
Definition: command-interest-signer.hpp:38
ptr_lib::shared_ptr< Interest > makeCommandInterest(const Name &name, const SigningInfo &params=KeyChain::getDefaultSigningInfo(), WireFormat &wireFormat=*WireFormat::getDefaultWireFormat())
Append the timestamp and nonce name components to the supplied name, create an Interest object and si...
Definition: command-interest-signer.cpp:35
A SigningInfo holds the signing parameters passed to the KeyChain.
Definition: signing-info.hpp:39
A CommandInterestPreparer keeps track of a timestamp and prepares a command interest by adding a time...
Definition: command-interest-preparer.hpp:39
CommandInterestSigner(KeyChain &keyChain)
Create a CommandInterestSigner to use the keyChain to sign.
Definition: command-interest-signer.cpp:29
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
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