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 | |
Yingdi Yu | fc40d87 | 2014-02-18 12:56:04 -0800 | [diff] [blame^] | 8 | #ifndef NDN_SECURITY_CERTIFICATE_CACHE_HPP |
| 9 | #define NDN_SECURITY_CERTIFICATE_CACHE_HPP |
Yingdi Yu | 7640cb3 | 2014-01-29 20:00:50 -0800 | [diff] [blame] | 10 | |
| 11 | #include "../name.hpp" |
| 12 | #include "identity-certificate.hpp" |
| 13 | |
Yingdi Yu | fc40d87 | 2014-02-18 12:56:04 -0800 | [diff] [blame^] | 14 | namespace ndn { |
Yingdi Yu | 7640cb3 | 2014-01-29 20:00:50 -0800 | [diff] [blame] | 15 | |
| 16 | class CertificateCache |
| 17 | { |
| 18 | public: |
| 19 | virtual |
| 20 | ~CertificateCache() {} |
| 21 | |
| 22 | virtual void |
| 23 | insertCertificate(ptr_lib::shared_ptr<const IdentityCertificate> certificate) = 0; |
| 24 | |
| 25 | virtual ptr_lib::shared_ptr<const IdentityCertificate> |
| 26 | getCertificate(const Name& certificateNameWithoutVersion) = 0; |
| 27 | }; |
| 28 | |
Yingdi Yu | fc40d87 | 2014-02-18 12:56:04 -0800 | [diff] [blame^] | 29 | } // namespace ndn |
Yingdi Yu | 7640cb3 | 2014-01-29 20:00:50 -0800 | [diff] [blame] | 30 | |
Yingdi Yu | fc40d87 | 2014-02-18 12:56:04 -0800 | [diff] [blame^] | 31 | #endif //NDN_SECURITY_CERTIFICATE_CACHE_HPP |