22 #ifndef NDN_SECURITY_PIB_HPP
23 #define NDN_SECURITY_PIB_HPP
48 class Pib : noncopyable
55 class Error :
public std::runtime_error
60 :
std::runtime_error(what)
134 addIdentity(
const Name& identityName);
142 removeIdentity(
const Name& identityName);
153 setDefaultIdentity(
const Name& identityName);
163 Pib(
const std::string scheme,
const std::string& location, shared_ptr<PibImpl> impl);
187 #endif // NDN_SECURITY_PIB_HPP
bool m_needRefreshIdentities
Copyright (c) 2013-2016 Regents of the University of California.
Error(const std::string &what)
bool m_hasDefaultIdentity
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
Identity getIdentity(const Name &identityName) const
Get an identity with name identityName.
void setTpmLocator(const std::string &tpmLocator)
Set the corresponding TPM information to tpmLocator.
The packet signing interface.
IdentityContainer m_identities
std::string getScheme() const
return the scheme of the PibLocator
A handler to search or enumerate identities in PIB.
std::string getPibLocator() const
Get PIB Locator.
represents a semantic error
Identity m_defaultIdentity
const IdentityContainer & getIdentities() const
Get all the identities.
Identity & getDefaultIdentity() const
Get the default identity.
shared_ptr< PibImpl > m_impl
Name abstraction to represent an absolute name.
std::string getTpmLocator() const
Get TPM Locator.