22 #ifndef NDN_SECURITY_PIB_DETAIL_IDENTITY_IMPL_HPP
23 #define NDN_SECURITY_PIB_DETAIL_IDENTITY_IMPL_HPP
25 #include "../key-container.hpp"
54 IdentityImpl(
const Name& identityName, shared_ptr<PibImpl> impl,
bool needInit =
false);
73 addKey(
const uint8_t* key,
size_t keyLen,
const Name& keyName);
125 mutable bool m_isDefaultKeyLoaded;
126 mutable Key m_defaultKey;
130 shared_ptr<PibImpl> m_impl;
138 #endif // NDN_SECURITY_PIB_DETAIL_IDENTITY_IMPL_HPP
Backend instance of Identity.
Copyright (c) 2013-2016 Regents of the University of California.
const KeyContainer & getKeys() const
Get all keys for this Identity.
const Key & setDefaultKey(const Name &keyName)
Set the key with id keyName.
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.
Name abstraction to represent an absolute name.
void removeKey(const Name &keyName)
Remove a key with keyName.
Key addKey(const uint8_t *key, size_t keyLen, const Name &keyName)
Add a key of keyLen bytes with keyName (in PKCS#8 format).
const Key & getDefaultKey() const
Get the default key for this Identity.
const Name & getName() const
Get the name of the identity.
IdentityImpl(const Name &identityName, shared_ptr< PibImpl > impl, bool needInit=false)
Create an Identity with identityName.