22 #ifndef NDN_CXX_SECURITY_PIB_IDENTITY_HPP
23 #define NDN_CXX_SECURITY_PIB_IDENTITY_HPP
33 class IdentityContainer;
43 class Identity :
private boost::equality_comparable<Identity>
99 operator
bool() const noexcept;
112 addKey(span<const uint8_t> key, const
Name& keyName) const;
119 removeKey(const
Name& keyName) const;
128 setDefaultKey(const
Name& keyName) const;
136 setDefaultKey(span<const uint8_t> key, const
Name& keyName) const;
140 Identity(weak_ptr<IdentityImpl> impl) noexcept;
148 shared_ptr<IdentityImpl>
152 equals(const
Identity& other) const noexcept;
162 return lhs.equals(rhs);
169 return os <<
id.getName();
171 return os <<
"(empty)";
175 weak_ptr<IdentityImpl> m_impl;
Represents an absolute name.
The main interface for signing key management.
Container of identities of a PIB.
Frontend handle for an identity in the PIB.
Key getDefaultKey() const
Return the default key for this identity.
const KeyContainer & getKeys() const
Return all the keys of this identity.
const Name & getName() const
Return the name of the identity.
friend std::ostream & operator<<(std::ostream &os, const Identity &id)
Key getKey(const Name &keyName) const
Obtain a handle to the key with the given name.
Identity() noexcept
Default constructor.
Container of keys of an identity.
Frontend handle for a key in the PIB.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
Contains the ndn-cxx security framework.