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

Helper class to prepare command interest name. More...

#include <command-interest-signer.hpp>

Inheritance diagram for ndn::security::CommandInterestPreparer:
Collaboration diagram for ndn::security::CommandInterestPreparer:

Public Member Functions

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

Detailed Description

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).

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

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

Constructor & Destructor Documentation

◆ CommandInterestPreparer()

ndn::security::CommandInterestPreparer::CommandInterestPreparer ( )

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

Member Function Documentation

◆ prepareCommandInterestName()

Name ndn::security::CommandInterestPreparer::prepareCommandInterestName ( Name  name)

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().


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