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;
130 Pib(
const std::string& scheme,
const std::string& location, shared_ptr<PibImpl> impl);
140 addIdentity(
const Name& identity);
148 removeIdentity(
const Name& identity);
158 setDefaultIdentity(
const Name& identity);
Represents an absolute name.
Container of identities of a Pib.
A frontend handle of an Identity.
represents a semantic error
IdentityContainer m_identities
bool m_isDefaultIdentityLoaded
Identity m_defaultIdentity
std::string getScheme() const
return the scheme of the PIB Locator
shared_ptr< PibImpl > m_impl
std::string getPibLocator() const
Get PIB Locator.
Identity getIdentity(const Name &identityName) const
Get an identity with name identityName.
void reset()
Reset content in PIB, including reset of the TPM locator.
void setTpmLocator(const std::string &tpmLocator)
Set the corresponding TPM information to tpmLocator.
const Identity & getDefaultIdentity() const
Get the default identity.
std::string getTpmLocator() const
Get TPM Locator.
const IdentityContainer & getIdentities() const
Get all the identities.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE