NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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"
29 
30 namespace ndn {
31 namespace security {
32 
36 class CertificateCache : noncopyable
37 {
38 public:
39  virtual
41  {
42  }
43 
44  virtual void
45  insertCertificate(shared_ptr<const v1::IdentityCertificate> certificate) = 0;
46 
47  virtual shared_ptr<const v1::IdentityCertificate>
48  getCertificate(const Name& certificateNameWithoutVersion) = 0;
49 
50  virtual void
51  reset() = 0;
52 
53  virtual size_t
54  getSize() = 0;
55 
56  bool
58  {
59  return (getSize() == 0);
60  }
61 };
62 
63 } // namespace security
64 
66 
67 } // namespace ndn
68 
69 #endif // NDN_SECURITY_CERTIFICATE_CACHE_HPP
Copyright (c) 2011-2015 Regents of the University of California.
virtual void insertCertificate(shared_ptr< const v1::IdentityCertificate > certificate)=0
virtual shared_ptr< const v1::IdentityCertificate > getCertificate(const Name &certificateNameWithoutVersion)=0
Name abstraction to represent an absolute name.
Definition: name.hpp:46
Interface for the cache of validated certificates.