22 #ifndef NDN_SECURITY_PIB_IDENTITY_HPP
23 #define NDN_SECURITY_PIB_IDENTITY_HPP
71 Identity(weak_ptr<detail::IdentityImpl> impl);
103 operator bool()
const;
119 addKey(
const uint8_t* key,
size_t keyLen,
const Name& keyName)
const;
126 removeKey(
const Name& keyName)
const;
135 setDefaultKey(
const Name& keyName)
const;
144 setDefaultKey(
const uint8_t* key,
size_t keyLen,
const Name& keyName)
const;
152 shared_ptr<detail::IdentityImpl>
156 weak_ptr<detail::IdentityImpl> m_impl;
168 #endif // NDN_SECURITY_PIB_IDENTITY_HPP
Copyright (c) 2013-2016 Regents of the University of California.
const Key & getDefaultKey() const
Get the default key for this Identity.
The interface of signing key management.
Identity()
Default Constructor.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
Container of keys of an identity.
const KeyContainer & getKeys() const
Get all keys for this identity.
A frontend handle of a key instance.
Name abstraction to represent an absolute name.
Key getKey(const Name &keyName) const
Get a key with id keyName.
const Name & getName() const
Get the name of the identity.
A frontend handle of an Identity.