NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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 "
identity-certificate.hpp
"
29
30
namespace
ndn
{
31
35
class
CertificateCache
: noncopyable
36
{
37
public
:
38
virtual
39
~CertificateCache
()
40
{
41
}
42
43
virtual
void
44
insertCertificate
(shared_ptr<const IdentityCertificate> certificate) = 0;
45
46
virtual
shared_ptr<const IdentityCertificate>
47
getCertificate
(
const
Name
& certificateNameWithoutVersion) = 0;
48
49
virtual
void
50
reset
() = 0;
51
52
virtual
size_t
53
getSize
() = 0;
54
55
bool
56
isEmpty
()
57
{
58
return
(
getSize
() == 0);
59
}
60
};
61
62
}
// namespace ndn
63
64
#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::CertificateCache::getSize
virtual size_t getSize()=0
ndn::CertificateCache::reset
virtual void reset()=0
ndn::CertificateCache::insertCertificate
virtual void insertCertificate(shared_ptr< const IdentityCertificate > certificate)=0
ndn::Name
Name abstraction to represent an absolute name.
Definition:
name.hpp:46
identity-certificate.hpp
ndn::CertificateCache
Interface for the cache of validated certificates.
Definition:
certificate-cache.hpp:35
ndn::CertificateCache::getCertificate
virtual shared_ptr< const IdentityCertificate > getCertificate(const Name &certificateNameWithoutVersion)=0
ndn::CertificateCache::~CertificateCache
virtual ~CertificateCache()
Definition:
certificate-cache.hpp:39
ndn::CertificateCache::isEmpty
bool isEmpty()
Definition:
certificate-cache.hpp:56
ndnSIM
ndn-cxx
src
security
certificate-cache.hpp
Generated on Tue Feb 23 2016 22:18:43 for ndnSIM by
1.8.11