Public Member Functions | List of all members
ndn::CertificateCache Class Reference

A CertificateCache is used to save other users' certificate during verification. More...

#include <certificate-cache.hpp>

Public Member Functions

void insertCertificate (const IdentityCertificate &certificate)
 Insert the certificate into the cache. More...
 
void deleteCertificate (const Name &certificateName)
 Remove a certificate from the cache. More...
 
ptr_lib::shared_ptr< IdentityCertificategetCertificate (const Name &certificateName) const
 Fetch a certificate from the cache. More...
 
void reset ()
 Clear all certificates from the store.
 

Detailed Description

A CertificateCache is used to save other users' certificate during verification.

Member Function Documentation

void ndn::CertificateCache::deleteCertificate ( const Name certificateName)
inline

Remove a certificate from the cache.

This does nothing if it is not present.

Parameters
certificateNameThe name of the certificate to remove. This assumes there is no timestamp in the name.
ptr_lib::shared_ptr<IdentityCertificate> ndn::CertificateCache::getCertificate ( const Name certificateName) const
inline

Fetch a certificate from the cache.

Parameters
certificateNameThe name of the certificate to remove. Assumes there is no timestamp in the name.
Returns
A new copy of the IdentityCertificate, or a null shared_ptr if not found.
void ndn::CertificateCache::insertCertificate ( const IdentityCertificate certificate)
inline

Insert the certificate into the cache.

Assumes the timestamp is not yet removed from the name.

Parameters
certificateThe certificate to copy and insert.

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