Helper class to prepare command interest name. More...
#include <command-interest-signer.hpp>
Public Member Functions | |
CommandInterestPreparer () | |
Name | prepareCommandInterestName (Name name) |
Prepare name of the CommandInterest. More... | |
Helper class to prepare command interest name.
The preparer adds timestamp and nonce name components to the supplied name.
This class is primarily designed to be used as part of CommandInterestSigner, but can also be using in an application that defines custom signing methods not support by the KeyChain (such as HMAC-SHA1).
Definition at line 41 of file command-interest-signer.hpp.
ndn::security::CommandInterestPreparer::CommandInterestPreparer | ( | ) |
Definition at line 28 of file command-interest-signer.cpp.
Prepare name of the CommandInterest.
This method appends the timestamp and nonce name components to the supplied name.
Definition at line 34 of file command-interest-signer.cpp.
References ndn::name::Component::fromNumber(), ndn::random::generateWord64(), ndn::time::system_clock::now(), and ndn::time::toUnixTimestamp().
Referenced by ndn::security::CommandInterestSigner::makeCommandInterest().