nlsr::security::CertificateStore Class Reference

Store certificates for names. More...

#include <certificate-store.hpp>

Public Member Functions

 CertificateStore (ndn::Face &face, ConfParameter &confParam, Lsdb &lsdb)
 
void insert (const ndn::security::v2::Certificate &certificate)
 
const ndn::security::v2::Certificate * find (const ndn::Name &keyName) const
 Find a certificate. More...
 
void publishCertFromCache (const ndn::Name &keyName)
 Retrieves the chain of certificates from Validator's cache and store them in Nlsr's own CertificateStore. More...
 
void afterFetcherSignalEmitted (const ndn::Data &lsaSegment)
 

Detailed Description

Store certificates for names.

Stores certificates that this router claims to be authoritative for. That is, this stores only the certificates that we will reply to KEY interests with, e.g. when other routers are verifying data we have sent.

Definition at line 45 of file certificate-store.hpp.

Constructor & Destructor Documentation

◆ CertificateStore()

nlsr::security::CertificateStore::CertificateStore ( ndn::Face &  face,
ConfParameter confParam,
Lsdb lsdb 
)

Definition at line 33 of file certificate-store.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ afterFetcherSignalEmitted()

void nlsr::security::CertificateStore::afterFetcherSignalEmitted ( const ndn::Data &  lsaSegment)

Definition at line 166 of file certificate-store.cpp.

Here is the call graph for this function:

◆ find()

const ndn::security::v2::Certificate * nlsr::security::CertificateStore::find ( const ndn::Name &  keyName) const

Find a certificate.

Find a certificate that NLSR has. First it checks against the certificates this NLSR claims to be authoritative for, usually something like this specific router's certificate, and then checks the cache of certificates it has already fetched. If none can be found, it will return an null pointer.

Definition at line 58 of file certificate-store.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ insert()

void nlsr::security::CertificateStore::insert ( const ndn::security::v2::Certificate &  certificate)

Definition at line 51 of file certificate-store.cpp.

Here is the caller graph for this function:

◆ publishCertFromCache()

void nlsr::security::CertificateStore::publishCertFromCache ( const ndn::Name &  keyName)

Retrieves the chain of certificates from Validator's cache and store them in Nlsr's own CertificateStore.

Parameters
keyNameName of the first key in the certificate chain.

Definition at line 143 of file certificate-store.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: