NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::security::CommandInterestSigner Class Reference

Helper class to create command interests. More...

#include <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...
 

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

◆ CommandInterestSigner()

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

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

Member Function Documentation

◆ makeCommandInterest()

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.

References ndn::security::CommandInterestPreparer::prepareCommandInterestName(), ndn::Interest::setCanBePrefix(), and ndn::security::v2::KeyChain::sign().


The documentation for this class was generated from the following files: