22 #ifndef NDN_SECURITY_PIB_PIB_HPP 23 #define NDN_SECURITY_PIB_PIB_HPP 52 class Pib : noncopyable
56 class Error :
public std::runtime_error
61 :
std::runtime_error(what)
132 Pib(
const std::string& scheme,
const std::string& location, shared_ptr<PibImpl> impl);
151 addIdentity(
const Name& identity);
159 removeIdentity(
const Name& identity);
169 setDefaultIdentity(
const Name& identity);
198 #endif // NDN_SECURITY_PIB_PIB_HPP Copyright (c) 2013-2017 Regents of the University of California.
represents a semantic error
std::string getTpmLocator() const
Get TPM Locator.
The interface of signing key management.
bool m_isDefaultIdentityLoaded
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
std::string getPibLocator() const
Get PIB Locator.
void reset()
Reset content in PIB, including reset of the TPM locator.
shared_ptr< PibImpl > m_impl
void setTpmLocator(const std::string &tpmLocator)
Set the corresponding TPM information to tpmLocator.
IdentityContainer m_identities
Error(const std::string &what)
std::string getScheme() const
return the scheme of the PibLocator
const IdentityContainer & getIdentities() const
Get all the identities.
Represents an absolute name.
const Identity & getDefaultIdentity() const
Get the default identity.
Container of identities of a Pib.
A frontend handle of an Identity.
Identity getIdentity(const Name &identityName) const
Get an identity with name identityName.
Identity m_defaultIdentity