PibIdentity is at the top level in PIB's Identity-Key-Certificate hierarchy. More...
#include <pib-identity.hpp>
Public Member Functions | |
| const Name & | getName () |
| ptr_lib::shared_ptr< PibKey > | getKey (const Name &keyName) |
| Get the key with name keyName. More... | |
| ptr_lib::shared_ptr< PibKey > & | getDefaultKey () |
| Get the default key of this Identity. More... | |
Friends | |
| class | PibIdentityContainer |
| class | KeyChain |
PibIdentity is at the top level in PIB's Identity-Key-Certificate hierarchy.
An identity has a Name, and contains zero or more keys, at most one of which is set as the default key of this identity. Properties of a key can be accessed after obtaining a PibKey object.
| ptr_lib::shared_ptr< PibKey > & ndn::PibIdentity::getDefaultKey | ( | ) |
Get the default key of this Identity.
| std::domain_error | if the backend implementation instance is invalid. |
| Pib::Error | if the default key has not been set. |
Get the key with name keyName.
| keyName | The name of the key. |
| std::domain_error | if the backend implementation instance is invalid. |
| std::invalid_argument | if keyName does not match the identity name. |
| Pib::Error | if the key does not exist. |
1.8.6