All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
ndn::StaticTrustAnchorGroup Class Reference

The StaticTrustAnchorGroup class extends TrustAnchorGroup to implement a static trust anchor group. More...

#include <trust-anchor-group.hpp>

Inheritance diagram for ndn::StaticTrustAnchorGroup:
ndn::TrustAnchorGroup

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
CertificateContainerInterfacecertificates_
 
std::set< NameanchorNames_
 

Detailed Description

The StaticTrustAnchorGroup class extends TrustAnchorGroup to implement a static trust anchor group.

Member Function Documentation

void ndn::StaticTrustAnchorGroup::add ( const CertificateV2 certificate)

Load the static anchor certificate.

If a certificate with the name is already added, do nothing.

Parameters
certificateThe certificate to add, which is copied.
void ndn::StaticTrustAnchorGroup::remove ( const Name certificateName)

Remove the static anchor with the certificate name.

Parameters
certificateNameThe certificate name.

The documentation for this class was generated from the following files: