NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
certificate-cache.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
24 #ifndef NDN_SECURITY_CERTIFICATE_CACHE_HPP
25 #define NDN_SECURITY_CERTIFICATE_CACHE_HPP
26 
27 #include "../name.hpp"
28 #include "identity-certificate.hpp"
29 
30 namespace ndn {
31 
35 class CertificateCache : noncopyable
36 {
37 public:
38  virtual
40  {
41  }
42 
43  virtual void
44  insertCertificate(shared_ptr<const IdentityCertificate> certificate) = 0;
45 
46  virtual shared_ptr<const IdentityCertificate>
47  getCertificate(const Name& certificateNameWithoutVersion) = 0;
48 
49  virtual void
50  reset() = 0;
51 
52  virtual size_t
53  getSize() = 0;
54 
55  bool
57  {
58  return (getSize() == 0);
59  }
60 };
61 
62 } // namespace ndn
63 
64 #endif // NDN_SECURITY_CERTIFICATE_CACHE_HPP
Copyright (c) 2011-2015 Regents of the University of California.
virtual size_t getSize()=0
virtual void reset()=0
virtual void insertCertificate(shared_ptr< const IdentityCertificate > certificate)=0
Name abstraction to represent an absolute name.
Definition: name.hpp:46
Interface for the cache of validated certificates.
virtual shared_ptr< const IdentityCertificate > getCertificate(const Name &certificateNameWithoutVersion)=0