ndn::security::CommandInterestSigner Class Reference

Helper class to create command interests. More...

#include <ndn-cxx/security/command-interest-signer.hpp>

+ Inheritance diagram for ndn::security::CommandInterestSigner:
+ Collaboration diagram for ndn::security::CommandInterestSigner:

Public Member Functions

 CommandInterestSigner (KeyChain &keyChain)
 
Interest makeCommandInterest (const Name &name, const SigningInfo &params=KeyChain::getDefaultSigningInfo())
 Create CommandInterest. More...
 

Private Member Functions

Name prepareCommandInterestName (Name name)
 Prepare name of the CommandInterest. More...
 

Detailed Description

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.

See also
https://redmine.named-data.net/projects/ndn-cxx/wiki/CommandInterest

Definition at line 66 of file command-interest-signer.hpp.

Constructor & Destructor Documentation

ndn::security::CommandInterestSigner::CommandInterestSigner ( KeyChain &  keyChain)
explicit

Definition at line 50 of file command-interest-signer.cpp.

Member Function Documentation

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

See also
https://redmine.named-data.net/projects/ndn-cxx/wiki/CommandInterest

Definition at line 56 of file command-interest-signer.cpp.