A CertificateCache is used to save other users' certificate during verification.
More...
#include <certificate-cache.hpp>
A CertificateCache is used to save other users' certificate during verification.
void ndn::CertificateCache::deleteCertificate |
( |
const Name & |
certificateName | ) |
|
|
inline |
Remove a certificate from the cache.
This does nothing if it is not present.
- Parameters
-
certificateName | The 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
-
certificateName | The 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.
Insert the certificate into the cache.
Assumes the timestamp is not yet removed from the name.
- Parameters
-
certificate | The certificate to copy and insert. |
The documentation for this class was generated from the following file: