Helper class to create command interests. More...
#include <command-interest-signer.hpp>
Public Member Functions | |
CommandInterestSigner (KeyChain &keyChain) | |
Interest | makeCommandInterest (const Name &name, const SigningInfo ¶ms=KeyChain::getDefaultSigningInfo()) |
Create CommandInterest. More... | |
Helper class to create command interests.
The signer adds timestamp and nonce name components to the supplied name, creates an Interest, and signs it with the KeyChain.
Definition at line 66 of file command-interest-signer.hpp.
|
explicit |
Definition at line 50 of file command-interest-signer.cpp.
Interest ndn::security::CommandInterestSigner::makeCommandInterest | ( | const Name & | name, |
const SigningInfo & | params = KeyChain::getDefaultSigningInfo() |
||
) |
Create CommandInterest.
This method appends the timestamp and nonce name components to the supplied name, create an Interest object and signs it with the keychain.
Note that signature of the command interest covers only Name of the interest. Therefore, other fields in the returned interest can be changed without breaking validity of the signature, because s
Definition at line 56 of file command-interest-signer.cpp.
References ndn::security::CommandInterestPreparer::prepareCommandInterestName().
Referenced by ndn::nfd::Controller::Controller().