Static trust anchor group. More...
#include <trust-anchor-group.hpp>


Public Member Functions | |
| StaticTrustAnchorGroup (CertContainerInterface &certContainer, const std::string &id) | |
| Create a static trust anchor group. More... | |
| void | add (Certificate &&cert) |
Load static anchor cert. More... | |
| void | remove (const Name &certName) |
Remove static anchor certName. More... | |
Public Member Functions inherited from ndn::security::v2::TrustAnchorGroup | |
| TrustAnchorGroup (CertContainerInterface &certContainer, const std::string &id) | |
| Create an anchor group. More... | |
| virtual | ~TrustAnchorGroup () |
| const std::string & | getId () const |
| size_t | size () const |
| virtual void | refresh () |
| Request certificate refresh. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ndn::security::v2::TrustAnchorGroup | |
| CertContainerInterface & | m_certs |
| std::set< Name > | m_anchorNames |
Static trust anchor group.
Definition at line 94 of file trust-anchor-group.hpp.
| ndn::security::v2::StaticTrustAnchorGroup::StaticTrustAnchorGroup | ( | CertContainerInterface & | certContainer, |
| const std::string & | id | ||
| ) |
Create a static trust anchor group.
| certContainer | Reference to CertContainerInterface instance |
| id | Group id |
Definition at line 64 of file trust-anchor-group.cpp.
| void ndn::security::v2::StaticTrustAnchorGroup::add | ( | Certificate && | cert | ) |
Load static anchor cert.
Definition at line 70 of file trust-anchor-group.cpp.
References ndn::security::v2::CertContainerInterface::add(), ndn::security::v2::TrustAnchorGroup::m_anchorNames, ndn::security::v2::TrustAnchorGroup::m_certs, and nonstd::optional_lite::std11::move().
| void ndn::security::v2::StaticTrustAnchorGroup::remove | ( | const Name & | certName | ) |
Remove static anchor certName.
Definition at line 81 of file trust-anchor-group.cpp.
References ndn::security::v2::TrustAnchorGroup::m_anchorNames, ndn::security::v2::TrustAnchorGroup::m_certs, and ndn::security::v2::CertContainerInterface::remove().