NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
certificate-cache.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
24
#ifndef NDN_SECURITY_CERTIFICATE_CACHE_HPP
25
#define NDN_SECURITY_CERTIFICATE_CACHE_HPP
26
27
#include "../name.hpp"
28
#include "
v1/identity-certificate.hpp
"
29
30
namespace
ndn
{
31
namespace
security
{
32
36
class
CertificateCache
: noncopyable
37
{
38
public
:
39
virtual
40
~CertificateCache
()
41
{
42
}
43
44
virtual
void
45
insertCertificate
(shared_ptr<const v1::IdentityCertificate> certificate) = 0;
46
47
virtual
shared_ptr<const v1::IdentityCertificate>
48
getCertificate
(
const
Name
& certificateNameWithoutVersion) = 0;
49
50
virtual
void
51
reset
() = 0;
52
53
virtual
size_t
54
getSize
() = 0;
55
56
bool
57
isEmpty
()
58
{
59
return
(
getSize
() == 0);
60
}
61
};
62
63
}
// namespace security
64
65
using
security::CertificateCache
;
66
67
}
// namespace ndn
68
69
#endif // NDN_SECURITY_CERTIFICATE_CACHE_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::security::CertificateCache::insertCertificate
virtual void insertCertificate(shared_ptr< const v1::IdentityCertificate > certificate)=0
ndn::security::CertificateCache::isEmpty
bool isEmpty()
Definition:
certificate-cache.hpp:57
ndn::security::CertificateCache::getCertificate
virtual shared_ptr< const v1::IdentityCertificate > getCertificate(const Name &certificateNameWithoutVersion)=0
ndn::Name
Name abstraction to represent an absolute name.
Definition:
name.hpp:46
ndn::security::CertificateCache
Interface for the cache of validated certificates.
Definition:
certificate-cache.hpp:36
ndn::security::CertificateCache::getSize
virtual size_t getSize()=0
ndn::security::CertificateCache::~CertificateCache
virtual ~CertificateCache()
Definition:
certificate-cache.hpp:40
security
ndn::security::CertificateCache::reset
virtual void reset()=0
identity-certificate.hpp
ndnSIM
ndn-cxx
src
security
certificate-cache.hpp
Generated on Wed Jan 11 2017 18:17:14 for ndnSIM by
1.8.13