represents the PIB More...
#include <ndn-cxx/security/pib/pib.hpp>
Classes | |
class | Error |
represents a semantic error More... | |
Public Member Functions | |
~Pib () | |
const Identity & | getDefaultIdentity () const |
Get the default identity. More... | |
const IdentityContainer & | getIdentities () const |
Get all the identities. More... | |
Identity | getIdentity (const Name &identityName) const |
Get an identity with name identityName . More... | |
std::string | getPibLocator () const |
Get PIB Locator. More... | |
std::string | getScheme () const |
return the scheme of the PIB Locator More... | |
std::string | getTpmLocator () const |
Get TPM Locator. More... | |
void | reset () |
Reset content in PIB, including reset of the TPM locator. More... | |
void | setTpmLocator (const std::string &tpmLocator) |
Set the corresponding TPM information to tpmLocator . More... | |
Protected Attributes | |
friend | KeyChain |
Identity | m_defaultIdentity |
IdentityContainer | m_identities |
shared_ptr< PibImpl > | m_impl |
bool | m_isDefaultIdentityLoaded |
std::string | m_location |
std::string | m_scheme |
represents the PIB
The PIB (Public Information Base) stores the public portion of a user's cryptography keys. The format and location of stored information is indicated by the PibLocator. The PIB is designed to work with a TPM (Trusted Platform Module) which stores private keys. There is a one-to-one association between PIB and TPM, and therefore the TpmLocator is recorded by the PIB to enforce this association and prevent one from operating on mismatched PIB and TPM.
Information in the PIB is organized in a hierarchy of Identity-Key-Certificate. At the top level, the Pib class provides access to identities, and allows setting a default identity. Properties of an identity can be accessed after obtaining an Identity object.
PibImpl::Error | when underlying implementation has non-semantic error. |
|
default |
const Identity & ndn::security::pib::Pib::getDefaultIdentity | ( | ) | const |
Get the default identity.
Pib::Error | if no default identity exists. |
const IdentityContainer & ndn::security::pib::Pib::getIdentities | ( | ) | const |
Get an identity with name identityName
.
Pib::Error | if the identity does not exist. |
std::string ndn::security::pib::Pib::getPibLocator | ( | ) | const |
|
inline |
std::string ndn::security::pib::Pib::getTpmLocator | ( | ) | const |
void ndn::security::pib::Pib::reset | ( | ) |
void ndn::security::pib::Pib::setTpmLocator | ( | const std::string & | tpmLocator | ) |
|
mutableprotected |
|
protected |
|
protected |
|
mutableprotected |