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

Extends CertificateFetcherFromNetwork to fetch certificates from the incoming face of the packet. More...

#include <certificate-fetcher-direct-fetch.hpp>

Inheritance diagram for ndn::security::v2::CertificateFetcherDirectFetch:
Collaboration diagram for ndn::security::v2::CertificateFetcherDirectFetch:

Public Member Functions

 CertificateFetcherDirectFetch (Face &face)
 
- Public Member Functions inherited from ndn::security::v2::CertificateFetcherFromNetwork
 CertificateFetcherFromNetwork (Face &face)
 
- Public Member Functions inherited from ndn::security::v2::CertificateFetcher
 CertificateFetcher ()
 
virtual ~CertificateFetcher ()
 
virtual void setCertificateStorage (CertificateStorage &certStorage)
 Assign certificate storage to check known certificate and to cache unverified ones. More...
 
void fetch (const shared_ptr< CertificateRequest > &certRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation)
 Asynchronously fetch certificate. More...
 

Protected Member Functions

void doFetch (const shared_ptr< CertificateRequest > &keyRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation) override
 Asynchronous certificate fetching implementation. More...
 
- Protected Member Functions inherited from ndn::security::v2::CertificateFetcherFromNetwork
void doFetch (const shared_ptr< CertificateRequest > &certRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation) override
 Asynchronous certificate fetching implementation. More...
 

Additional Inherited Members

- Public Types inherited from ndn::security::v2::CertificateFetcher
using ValidationContinuation = std::function< void(const Certificate &cert, const shared_ptr< ValidationState > &state)>
 
- Protected Attributes inherited from ndn::security::v2::CertificateFetcherFromNetwork
Facem_face
 
- Protected Attributes inherited from ndn::security::v2::CertificateFetcher
CertificateStoragem_certStorage
 

Detailed Description

Extends CertificateFetcherFromNetwork to fetch certificates from the incoming face of the packet.

During Interest and Data validation, if IncomingFaceId tag is present on the original Interest, this fetcher will send a "direct Interest" to fetch certificates from the face where the original packet was received, in addition to fetching from the infrastructure. The application must enable NextHopFaceId privilege on the face used by this fetcher prior to the validation.

Definition at line 40 of file certificate-fetcher-direct-fetch.hpp.

Constructor & Destructor Documentation

◆ CertificateFetcherDirectFetch()

ndn::security::v2::CertificateFetcherDirectFetch::CertificateFetcherDirectFetch ( Face face)
explicit

Definition at line 30 of file certificate-fetcher-direct-fetch.cpp.

Member Function Documentation

◆ doFetch()


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