All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
certificate-cache.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
8 #ifndef NDN_SECURITY_CERTIFICATE_CACHE_HPP
9 #define NDN_SECURITY_CERTIFICATE_CACHE_HPP
10 
11 #include "../name.hpp"
12 #include "identity-certificate.hpp"
13 
14 namespace ndn {
15 
17 {
18 public:
19  virtual
21  {
22  }
23 
24  virtual void
25  insertCertificate(shared_ptr<const IdentityCertificate> certificate) = 0;
26 
27  virtual shared_ptr<const IdentityCertificate>
28  getCertificate(const Name& certificateNameWithoutVersion) = 0;
29 };
30 
31 } // namespace ndn
32 
33 #endif //NDN_SECURITY_CERTIFICATE_CACHE_HPP
virtual void insertCertificate(shared_ptr< const IdentityCertificate > certificate)=0
A Name holds an array of Name::Component and represents an NDN name.
Definition: name.hpp:26
virtual shared_ptr< const IdentityCertificate > getCertificate(const Name &certificateNameWithoutVersion)=0