8 #ifndef NDN_SECURITY_CERTIFICATE_CACHE_TTL_HPP
9 #define NDN_SECURITY_CERTIFICATE_CACHE_TTL_HPP
11 #include "../common.hpp"
13 #include "../util/scheduler.hpp"
21 const time::seconds& defaultTtl = time::seconds(3600));
29 virtual shared_ptr<const IdentityCertificate>
34 insert(shared_ptr<const IdentityCertificate> certificate);
37 remove(
const Name& certificateName);
40 typedef std::map<Name, shared_ptr<const IdentityCertificate> >
Cache;
51 #endif //NDN_SECURITY_CERTIFICATE_CACHE_TTL_HPP
virtual void insertCertificate(shared_ptr< const IdentityCertificate > certificate)
CertificateCacheTtl(shared_ptr< boost::asio::io_service > io, const time::seconds &defaultTtl=time::seconds(3600))
std::map< Name, shared_ptr< const IdentityCertificate > > Cache
std::map< Name, EventId > EventTracker
virtual ~CertificateCacheTtl()
A Name holds an array of Name::Component and represents an NDN name.
virtual shared_ptr< const IdentityCertificate > getCertificate(const Name &certificateNameWithoutVersion)
time::seconds m_defaultTtl