23 #ifndef NDN_COMMAND_INTEREST_SIGNER_HPP
24 #define NDN_COMMAND_INTEREST_SIGNER_HPP
26 #include "key-chain.hpp"
27 #include "command-interest-preparer.hpp"
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;
51 static const int MINIMUM_SIZE = 4;
66 ptr_lib::shared_ptr<Interest>
69 const SigningInfo& params = KeyChain::getDefaultSigningInfo(),
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 ¶ms=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