blob: b49e121b31a185350eb9d1fec35e594769bba378 [file] [log] [blame]
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
/**
* Copyright (C) 2013 Regents of the University of California.
* @author: Yingdi Yu <yingdi@cs.ucla.edu>
* See COPYING for copyright and distribution information.
*/
#ifndef NDN_SECURITY_CERTIFICATE_CACHE_HPP
#define NDN_SECURITY_CERTIFICATE_CACHE_HPP
#include "../name.hpp"
#include "identity-certificate.hpp"
namespace ndn {
class CertificateCache
{
public:
virtual
~CertificateCache()
{
}
virtual void
insertCertificate(shared_ptr<const IdentityCertificate> certificate) = 0;
virtual shared_ptr<const IdentityCertificate>
getCertificate(const Name& certificateNameWithoutVersion) = 0;
};
} // namespace ndn
#endif //NDN_SECURITY_CERTIFICATE_CACHE_HPP