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) |
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.
| nlsr::security::CertificateStore::CertificateStore | ( | ndn::Face & | face, |
| ConfParameter & | confParam, | ||
| Lsdb & | lsdb | ||
| ) |
| void nlsr::security::CertificateStore::afterFetcherSignalEmitted | ( | const ndn::Data & | lsaSegment | ) |
| 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.
| void nlsr::security::CertificateStore::insert | ( | const ndn::security::v2::Certificate & | certificate | ) |
| 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.
| keyName | Name of the first key in the certificate chain. |
Definition at line 143 of file certificate-store.cpp.