22 #ifndef NDN_CXX_SECURITY_PIB_PIB_HPP
23 #define NDN_CXX_SECURITY_PIB_PIB_HPP
51 class Pib : noncopyable
55 class Error :
public std::runtime_error
58 using std::runtime_error::runtime_error;
118 Pib(
const std::string& locator, shared_ptr<PibImpl> impl);
128 addIdentity(
const Name& identity);
136 removeIdentity(
const Name& identity);
146 setDefaultIdentity(
const Name& identity);
149 const std::string m_locator;
150 const shared_ptr<PibImpl> m_impl;
Represents an absolute name.
The main interface for signing key management.
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.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
Contains the ndn-cxx security framework.