22 #ifndef NDN_CXX_SECURITY_PIB_CERTIFICATE_CONTAINER_HPP
23 #define NDN_CXX_SECURITY_PIB_CERTIFICATE_CONTAINER_HPP
29 #include <unordered_map>
80 std::set<Name>::const_iterator m_it;
121 get(
const Name& certName)
const;
137 const std::set<Name>&
143 const std::unordered_map<Name, Certificate>&
151 std::set<Name> m_certNames;
153 mutable std::unordered_map<Name, Certificate> m_certs;
155 shared_ptr<PibImpl> m_pib;
158 friend detail::KeyImpl;
164 using pib::CertificateContainer;
Represents an absolute name.
const_iterator & operator++()
bool operator==(const const_iterator &other) const
bool operator!=(const const_iterator &other) const
std::forward_iterator_tag iterator_category
std::ptrdiff_t difference_type
Container of certificates of a key.
const_iterator find(const Name &certName) const
const_iterator begin() const
Certificate get(const Name &certName) const
Get a certificate with certName from the container.
void remove(const Name &certName)
Remove a certificate with certName from the container.
bool isConsistent() const
Check if the container is consistent with the backend storage.
void add(const Certificate &certificate)
Add certificate into the container.
const_iterator end() const
Represents an NDN certificate following the version 2.0 format.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE