Cache of validated certificates with freshness-based eviction policy. More...
#include <certificate-cache-ttl.hpp>
Public Member Functions | |
CertificateCacheTtl (boost::asio::io_service &io, const time::seconds &defaultTtl=time::seconds(3600)) | |
virtual | ~CertificateCacheTtl () |
virtual void | insertCertificate (shared_ptr< const v1::IdentityCertificate > certificate) |
virtual shared_ptr< const v1::IdentityCertificate > | getCertificate (const Name &certificateNameWithoutVersion) |
virtual void | reset () |
virtual size_t | getSize () |
bool | isEmpty () |
Protected Types | |
typedef std::map< Name, std::pair< shared_ptr< const v1::IdentityCertificate >, EventId > > | Cache |
Protected Attributes | |
time::seconds | m_defaultTtl |
Cache | m_cache |
boost::asio::io_service & | m_io |
Scheduler | m_scheduler |
Cache of validated certificates with freshness-based eviction policy.
Validated certificates will stay in cache for the duration of their freshness period. The lifetime of the certificate in cache can be extended by "re-inserting" it in the cache.
Definition at line 40 of file certificate-cache-ttl.hpp.
|
protected |
Definition at line 73 of file certificate-cache-ttl.hpp.
|
explicit |
Definition at line 29 of file certificate-cache-ttl.cpp.
|
virtual |
Definition at line 37 of file certificate-cache-ttl.cpp.
|
virtual |
Implements ndn::security::CertificateCache.
Definition at line 48 of file certificate-cache-ttl.cpp.
|
virtual |
Implements ndn::security::CertificateCache.
Definition at line 64 of file certificate-cache-ttl.cpp.
|
virtual |
Implements ndn::security::CertificateCache.
Definition at line 42 of file certificate-cache-ttl.cpp.
|
inlineinherited |
Definition at line 57 of file certificate-cache.hpp.
|
virtual |
Implements ndn::security::CertificateCache.
Definition at line 58 of file certificate-cache-ttl.cpp.
|
protected |
Definition at line 76 of file certificate-cache-ttl.hpp.
|
protected |
Definition at line 75 of file certificate-cache-ttl.hpp.
|
protected |
Definition at line 77 of file certificate-cache-ttl.hpp.
|
protected |
Definition at line 78 of file certificate-cache-ttl.hpp.