Container of certificates of a key. More...
#include <ndn-cxx/security/pib/certificate-container.hpp>
Classes | |
class | const_iterator |
Public Types | |
using | iterator = const_iterator |
Public Member Functions | |
void | add (const Certificate &certificate) |
Add certificate into the container. More... | |
const_iterator | begin () const noexcept |
bool | empty () const noexcept |
Check whether the container is empty. More... | |
const_iterator | end () const noexcept |
const_iterator | find (const Name &certName) const |
Certificate | get (const Name &certName) const |
Return a certificate by name. More... | |
bool | isConsistent () const |
Check if the container is consistent with the backend storage. More... | |
void | remove (const Name &certName) |
Remove a certificate with certName from the container. More... | |
size_t | size () const noexcept |
Return the number of certificates in the container. More... | |
Friends | |
class | KeyImpl |
Container of certificates of a key.
The container is used to search/enumerate the certificates of a key. It can be created only by the KeyImpl private class.
Definition at line 42 of file certificate-container.hpp.
Definition at line 90 of file certificate-container.hpp.
void ndn::security::pib::CertificateContainer::add | ( | const Certificate & | certificate | ) |
Add certificate
into the container.
std::invalid_argument | The name of certificate does not match the key name. |
Definition at line 55 of file certificate-container.cpp.
|
inlinenoexcept |
Definition at line 94 of file certificate-container.hpp.
|
inlinenoexcept |
Check whether the container is empty.
Definition at line 112 of file certificate-container.hpp.
|
inlinenoexcept |
Definition at line 100 of file certificate-container.hpp.
CertificateContainer::const_iterator ndn::security::pib::CertificateContainer::find | ( | const Name & | certName | ) | const |
Definition at line 49 of file certificate-container.cpp.
Certificate ndn::security::pib::CertificateContainer::get | ( | const Name & | certName | ) | const |
Return a certificate by name.
Pib::Error | The certificate does not exist. |
std::invalid_argument | certName does not match the key name. |
Definition at line 90 of file certificate-container.cpp.
bool ndn::security::pib::CertificateContainer::isConsistent | ( | ) | const |
Check if the container is consistent with the backend storage.
Definition at line 106 of file certificate-container.cpp.
void ndn::security::pib::CertificateContainer::remove | ( | const Name & | certName | ) |
Remove a certificate with certName
from the container.
std::invalid_argument | certName does not match the key name. |
Definition at line 71 of file certificate-container.cpp.
|
inlinenoexcept |
Return the number of certificates in the container.
Definition at line 121 of file certificate-container.hpp.
|
friend |
Definition at line 171 of file certificate-container.hpp.