All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ndn::CertificateCacheTtl Class Reference

#include <certificate-cache-ttl.hpp>

Inheritance diagram for ndn::CertificateCacheTtl:
[legend]
Collaboration diagram for ndn::CertificateCacheTtl:
[legend]

Public Member Functions

 CertificateCacheTtl (shared_ptr< boost::asio::io_service > io, const time::seconds &defaultTtl=time::seconds(3600))
 
virtual ~CertificateCacheTtl ()
 
virtual void insertCertificate (shared_ptr< const IdentityCertificate > certificate)
 
virtual shared_ptr< const
IdentityCertificate
getCertificate (const Name &certificateNameWithoutVersion)
 

Protected Types

typedef std::map< Name,
shared_ptr< const
IdentityCertificate > > 
Cache
 
typedef std::map< Name, EventIdEventTracker
 

Protected Attributes

time::seconds m_defaultTtl
 
Cache m_cache
 
EventTracker m_tracker
 
Scheduler m_scheduler
 

Detailed Description

Definition at line 17 of file certificate-cache-ttl.hpp.

Member Typedef Documentation

typedef std::map<Name, shared_ptr<const IdentityCertificate> > ndn::CertificateCacheTtl::Cache
protected

Definition at line 40 of file certificate-cache-ttl.hpp.

typedef std::map<Name, EventId> ndn::CertificateCacheTtl::EventTracker
protected

Definition at line 41 of file certificate-cache-ttl.hpp.

Constructor & Destructor Documentation

ndn::CertificateCacheTtl::CertificateCacheTtl ( shared_ptr< boost::asio::io_service >  io,
const time::seconds &  defaultTtl = time::seconds(3600) 
)

Definition at line 15 of file certificate-cache-ttl.cpp.

ndn::CertificateCacheTtl::~CertificateCacheTtl ( )
virtual

Definition at line 22 of file certificate-cache-ttl.cpp.

Member Function Documentation

shared_ptr< const IdentityCertificate > ndn::CertificateCacheTtl::getCertificate ( const Name certificateNameWithoutVersion)
virtual

Implements ndn::CertificateCache.

Definition at line 61 of file certificate-cache-ttl.cpp.

void ndn::CertificateCacheTtl::insertCertificate ( shared_ptr< const IdentityCertificate certificate)
virtual

Implements ndn::CertificateCache.

Definition at line 27 of file certificate-cache-ttl.cpp.

Field Documentation

Cache ndn::CertificateCacheTtl::m_cache
protected

Definition at line 44 of file certificate-cache-ttl.hpp.

time::seconds ndn::CertificateCacheTtl::m_defaultTtl
protected

Definition at line 43 of file certificate-cache-ttl.hpp.

Scheduler ndn::CertificateCacheTtl::m_scheduler
protected

Definition at line 46 of file certificate-cache-ttl.hpp.

EventTracker ndn::CertificateCacheTtl::m_tracker
protected

Definition at line 45 of file certificate-cache-ttl.hpp.