blob: 9d99dccda64fa0b262368fc300902771f0497ce4 [file] [log] [blame]
Yingdi Yu7640cb32014-01-29 20:00:50 -08001/* -*- 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 Yufc40d872014-02-18 12:56:04 -08008#ifndef NDN_SECURITY_CERTIFICATE_CACHE_HPP
9#define NDN_SECURITY_CERTIFICATE_CACHE_HPP
Yingdi Yu7640cb32014-01-29 20:00:50 -080010
11#include "../name.hpp"
12#include "identity-certificate.hpp"
13
Yingdi Yufc40d872014-02-18 12:56:04 -080014namespace ndn {
Yingdi Yu7640cb32014-01-29 20:00:50 -080015
16class CertificateCache
17{
18public:
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 Yufc40d872014-02-18 12:56:04 -080029} // namespace ndn
Yingdi Yu7640cb32014-01-29 20:00:50 -080030
Yingdi Yufc40d872014-02-18 12:56:04 -080031#endif //NDN_SECURITY_CERTIFICATE_CACHE_HPP