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-container.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NDN_SECURITY_CERTIFICATE_CONTAINER_HPP
23
#define NDN_SECURITY_CERTIFICATE_CONTAINER_HPP
24
25
#include <set>
26
#include "
identity-certificate.hpp
"
27
28
namespace
ndn
{
29
namespace
security {
30
31
class
PibImpl;
32
34
class
CertificateContainer
35
{
36
public
:
37
class
const_iterator
38
{
39
public
:
40
friend
class
CertificateContainer
;
41
42
public
:
43
IdentityCertificate
44
operator*
();
45
46
const_iterator
&
47
operator++
();
48
49
const_iterator
50
operator++
(
int
);
51
52
bool
53
operator==
(
const
const_iterator
& other);
54
55
bool
56
operator!=
(
const
const_iterator
& other);
57
58
private
:
59
const_iterator
(std::set<Name>::const_iterator it, shared_ptr<PibImpl> impl);
60
61
private
:
62
std::set<Name>::const_iterator m_it;
63
shared_ptr<PibImpl> m_impl;
64
};
65
66
typedef
const_iterator
iterator
;
67
68
public
:
69
CertificateContainer
();
70
71
CertificateContainer
(std::set<Name>&& certNames, shared_ptr<PibImpl> impl);
72
73
const_iterator
74
begin
()
const
;
75
76
const_iterator
77
end
()
const
;
78
79
const_iterator
80
find
(
const
Name
& certName)
const
;
81
82
size_t
83
size
()
const
;
84
85
private
:
86
std::set<Name> m_certNames;
87
shared_ptr<PibImpl> m_impl;
88
};
89
90
}
// namespace security
91
}
// namespace ndn
92
93
#endif // NDN_SECURITY_CERTIFICATE_CONTAINER_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::security::CertificateContainer::const_iterator::operator++
const_iterator & operator++()
Definition:
certificate-container.cpp:42
ndn::security::CertificateContainer
A handler to search or enumerate certificates of a key.
Definition:
certificate-container.hpp:34
ndn::security::CertificateContainer::const_iterator::operator*
IdentityCertificate operator*()
Definition:
certificate-container.cpp:36
ndn::security::CertificateContainer::begin
const_iterator begin() const
Definition:
certificate-container.cpp:80
ndn::security::CertificateContainer::end
const_iterator end() const
Definition:
certificate-container.cpp:86
ndn::security::CertificateContainer::const_iterator::operator!=
bool operator!=(const const_iterator &other)
Definition:
certificate-container.cpp:63
ndn::security::CertificateContainer::size
size_t size() const
Definition:
certificate-container.cpp:98
ndn::security::CertificateContainer::const_iterator::operator==
bool operator==(const const_iterator &other)
Definition:
certificate-container.cpp:57
ndn::Name
Name abstraction to represent an absolute name.
Definition:
name.hpp:46
identity-certificate.hpp
ndn::security::CertificateContainer::find
const_iterator find(const Name &certName) const
Definition:
certificate-container.cpp:92
ndn::security::CertificateContainer::iterator
const_iterator iterator
Definition:
certificate-container.hpp:66
ndn::IdentityCertificate
Definition:
identity-certificate.hpp:32
ndn::security::CertificateContainer::const_iterator
Definition:
certificate-container.hpp:37
ndn::security::CertificateContainer::const_iterator::CertificateContainer
friend class CertificateContainer
Definition:
certificate-container.hpp:40
ndnSIM
ndn-cxx
src
security
certificate-container.hpp
Generated on Tue Feb 23 2016 22:18:43 for ndnSIM by
1.8.11