Frontend to the Public Information Base. More...
#include <ndn-cxx/security/pib/pib.hpp>
Inheritance diagram for ndn::security::pib::Pib:
Collaboration diagram for ndn::security::pib::Pib:Classes | |
| class | Error |
| Represents a semantic error. More... | |
Public Member Functions | |
| ~Pib () | |
| Identity | getDefaultIdentity () const |
| Return the default identity. More... | |
| const IdentityContainer & | getIdentities () const |
| Return all the identities. More... | |
| Identity | getIdentity (const Name &identityName) const |
Return an identity with name identityName. More... | |
| const std::string & | getPibLocator () const |
| Return the PIB Locator. More... | |
| std::string | getTpmLocator () const |
| Return the associated TPM Locator or an empty string if unset. More... | |
| void | reset () |
| Reset the contents of the PIB, including reset of the TPM Locator. More... | |
| void | setTpmLocator (const std::string &tpmLocator) |
Set the associated TPM information to tpmLocator. More... | |
Frontend to the Public Information Base.
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. The properties of an identity can be accessed after obtaining an Identity object.
| PibImpl::Error | When the underlying implementation has a non-semantic error. |
|
default |
| Identity ndn::security::pib::Pib::getDefaultIdentity | ( | ) | const |
Return the default identity.
| Pib::Error | No default identity exists. |
| const IdentityContainer & ndn::security::pib::Pib::getIdentities | ( | ) | const |
Return an identity with name identityName.
| Pib::Error | The desired identity does not exist. |
|
inline |
| std::string ndn::security::pib::Pib::getTpmLocator | ( | ) | const |
| void ndn::security::pib::Pib::reset | ( | ) |