blob: 14c42d189cdad4c371ddff8b84e20cf611e8fb41 [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
8#ifndef NDN_CERTIFICATE_CACHE_HPP
9#define NDN_CERTIFICATE_CACHE_HPP
10
11#include "../name.hpp"
12#include "identity-certificate.hpp"
13
14namespace ndn
15{
16
17class CertificateCache
18{
19public:
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