22 #ifndef NDN_SECURITY_PIB_KEY_CONTAINER_HPP 23 #define NDN_SECURITY_PIB_KEY_CONTAINER_HPP 28 #include <unordered_map> 50 class const_iterator :
public std::iterator<std::forward_iterator_tag, const Key>
74 std::set<Name>::const_iterator m_it;
90 find(
const Name& keyName)
const;
102 add(
const uint8_t* key,
size_t keyLen,
const Name& keyName);
109 remove(
const Name& keyName);
117 get(
const Name& keyName)
const;
125 isConsistent()
const;
134 const std::set<Name>&
140 const std::unordered_map<Name, shared_ptr<detail::KeyImpl>>&
141 getLoadedKeys()
const 148 std::set<Name> m_keyNames;
150 mutable std::unordered_map<Name, shared_ptr<detail::KeyImpl>> m_keys;
152 shared_ptr<PibImpl> m_pib;
154 friend class detail::IdentityImpl;
164 #endif // NDN_SECURITY_PIB_KEY_CONTAINER_HPP Copyright (c) 2013-2017 Regents of the University of California.
bool operator==(const Identity &lhs, const Identity &rhs)
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
Container of keys of an identity.
A frontend handle of a key instance.
Represents an absolute name.
bool operator!=(const Identity &lhs, const Identity &rhs)