The StaticTrustAnchorGroup class extends TrustAnchorGroup to implement a static trust anchor group. More...
#include <trust-anchor-group.hpp>
Public Member Functions | |
| StaticTrustAnchorGroup (CertificateContainerInterface &certificateContainer, const std::string &id) | |
| void | add (const CertificateV2 &certificate) |
| Load the static anchor certificate. More... | |
| void | remove (const Name &certificateName) |
| Remove the static anchor with the certificate name. More... | |
Public Member Functions inherited from ndn::TrustAnchorGroup | |
| TrustAnchorGroup (CertificateContainerInterface &certificateContainer, const std::string &id) | |
| Create a TrustAnchorGroup to use an existing container. More... | |
| const std::string & | getId () const |
| Get the group id given to the constructor. More... | |
| size_t | size () const |
| Get the number of certificates in the group. More... | |
| virtual void | refresh () |
| Request a certificate refresh. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ndn::TrustAnchorGroup | |
| static ptr_lib::shared_ptr < CertificateV2 > | readCertificate (const std::string &filePath) |
| Read a base-64-encoded certificate from a file. More... | |
Protected Attributes inherited from ndn::TrustAnchorGroup | |
| CertificateContainerInterface & | certificates_ |
| std::set< Name > | anchorNames_ |
The StaticTrustAnchorGroup class extends TrustAnchorGroup to implement a static trust anchor group.
| void ndn::StaticTrustAnchorGroup::add | ( | const CertificateV2 & | certificate | ) |
Load the static anchor certificate.
If a certificate with the name is already added, do nothing.
| certificate | The certificate to add, which is copied. |
| void ndn::StaticTrustAnchorGroup::remove | ( | const Name & | certificateName | ) |
Remove the static anchor with the certificate name.
| certificateName | The certificate name. |
1.8.6