22 #ifndef NDN_SECURITY_IDENTITY_HPP
23 #define NDN_SECURITY_IDENTITY_HPP
32 class IdentityContainer;
98 operator bool()
const;
161 Identity(
const Name& identityName, shared_ptr<PibImpl> impl,
bool needInit =
false);
169 validityCheck()
const;
182 mutable bool m_hasDefaultKey;
183 mutable Key m_defaultKey;
185 mutable bool m_needRefreshKeys;
188 shared_ptr<PibImpl> m_impl;
194 #endif // NDN_SECURITY_IDENTITY_HPP
Copyright (c) 2013-2016 Regents of the University of California.
const KeyContainer & getKeys() const
Get all the keys for this Identity.
bool operator!() const
Check if the Identity instance is invalid.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
The packet signing interface.
A handler to search or enumerate identities in PIB.
const Name & getName() const
Get the name of the identity.
A handler to search or enumerate keys of an identity.
Identity()
Default Constructor.
Name abstraction to represent an absolute name.
static const name::Component EMPTY_KEY_ID
The default value of keyId when add a new key.
Component holds a read-only name component value.
Key getKey(const name::Component &keyId) const
Get a key with id keyId.
Key & getDefaultKey() const
Get the default key for this Identity.