22 #ifndef NDN_CXX_SECURITY_PIB_PIB_HPP
23 #define NDN_CXX_SECURITY_PIB_PIB_HPP
52 class Pib : noncopyable
56 class Error :
public std::runtime_error
59 using std::runtime_error::runtime_error;
119 Pib(
const std::string& locator, shared_ptr<PibImpl> impl);
129 addIdentity(
const Name& identity);
137 removeIdentity(
const Name& identity);
147 setDefaultIdentity(
const Name& identity);
150 const std::string m_locator;
151 const shared_ptr<PibImpl> m_impl;
Represents an absolute name.
Container of identities of a PIB.
Frontend handle for an identity in the PIB.
Represents a semantic error.
Frontend to the Public Information Base.
Identity getIdentity(const Name &identityName) const
Return an identity with name identityName.
const std::string & getPibLocator() const
Return the PIB Locator.
void reset()
Reset the contents of the PIB, including reset of the TPM Locator.
Identity getDefaultIdentity() const
Return the default identity.
void setTpmLocator(const std::string &tpmLocator)
Set the associated TPM information to tpmLocator.
std::string getTpmLocator() const
Return the associated TPM Locator or an empty string if unset.
const IdentityContainer & getIdentities() const
Return all the identities.
The main interface for signing key management.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE