22 #ifndef NDN_CXX_SECURITY_PIB_IDENTITY_HPP
23 #define NDN_CXX_SECURITY_PIB_IDENTITY_HPP
76 Identity(weak_ptr<detail::IdentityImpl> impl);
109 operator bool()
const;
120 addKey(span<const uint8_t> key,
const Name& keyName)
const;
127 removeKey(
const Name& keyName)
const;
136 setDefaultKey(
const Name& keyName)
const;
145 setDefaultKey(span<const uint8_t> key,
const Name& keyName)
const;
153 shared_ptr<detail::IdentityImpl>
157 weak_ptr<detail::IdentityImpl> m_impl;
169 return !(lhs != rhs);
Represents an absolute name.
A frontend handle of an Identity.
const KeyContainer & getKeys() const
Get all keys for this identity.
const Key & getDefaultKey() const
Get the default key for this Identity.
const Name & getName() const
Get the name of the identity.
friend bool operator!=(const Identity &, const Identity &)
Identity()
Default Constructor.
Key getKey(const Name &keyName) const
Get a key with id keyName.
Container of keys of an identity.
A frontend handle of a key instance.
The interface of signing key management.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
bool operator!=(const Identity &lhs, const Identity &rhs)
bool operator==(const Identity &lhs, const Identity &rhs)
std::ostream & operator<<(std::ostream &os, const Identity &id)