Yingdi Yu | 7640cb3 | 2014-01-29 20:00:50 -0800 | [diff] [blame^] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /** |
| 3 | * Copyright (C) 2013 Regents of the University of California. |
| 4 | * @author: Yingdi Yu <yingdi@cs.ucla.edu> |
| 5 | * See COPYING for copyright and distribution information. |
| 6 | */ |
| 7 | |
| 8 | #ifndef NDN_CERTIFICATE_CACHE_HPP |
| 9 | #define NDN_CERTIFICATE_CACHE_HPP |
| 10 | |
| 11 | #include "../name.hpp" |
| 12 | #include "identity-certificate.hpp" |
| 13 | |
| 14 | namespace ndn |
| 15 | { |
| 16 | |
| 17 | class CertificateCache |
| 18 | { |
| 19 | public: |
| 20 | virtual |
| 21 | ~CertificateCache() {} |
| 22 | |
| 23 | virtual void |
| 24 | insertCertificate(ptr_lib::shared_ptr<const IdentityCertificate> certificate) = 0; |
| 25 | |
| 26 | virtual ptr_lib::shared_ptr<const IdentityCertificate> |
| 27 | getCertificate(const Name& certificateNameWithoutVersion) = 0; |
| 28 | }; |
| 29 | |
| 30 | }//ndn |
| 31 | |
| 32 | #endif |