22 #ifndef NDN_SECURITY_PIB_CERTIFICATE_CONTAINER_HPP
23 #define NDN_SECURITY_PIB_CERTIFICATE_CONTAINER_HPP
26 #include <unordered_map>
27 #include "../v2/certificate.hpp"
48 class const_iterator :
public std::iterator<std::forward_iterator_tag, const v2::Certificate>
72 std::set<Name>::const_iterator m_it;
105 remove(
const Name& certName);
113 get(
const Name& certName)
const;
130 const std::set<Name>&
136 const std::unordered_map<Name, v2::Certificate>&
144 std::set<Name> m_certNames;
146 mutable std::unordered_map<Name, v2::Certificate> m_certs;
148 shared_ptr<PibImpl> m_impl;
160 #endif // NDN_SECURITY_PIB_CERTIFICATE_CONTAINER_HPP
Copyright (c) 2013-2016 Regents of the University of California.
The certificate following the certificate format naming convention.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
bool operator==(const const_iterator &other) const
bool operator!=(const const_iterator &other) const
Container of certificates of a key.
const_iterator find(const Name &certName) const
bool isConsistent() const
Check if the container is consistent with the backend storage.
v2::Certificate operator*()
const_iterator end() const
Name abstraction to represent an absolute name.
void add(const v2::Certificate &certificate)
Add certificate into the container.
const_iterator begin() const
const_iterator & operator++()