ndn::security::StaticTrustAnchorGroup Class Reference

Static trust anchor group. More...

#include <ndn-cxx/security/trust-anchor-group.hpp>

+ Inheritance diagram for ndn::security::StaticTrustAnchorGroup:
+ Collaboration diagram for ndn::security::StaticTrustAnchorGroup:

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...
 
const std::string & getId () const
 
virtual void refresh ()
 Request certificate refresh. More...
 
void remove (const Name &certName)
 Remove static anchor certName. More...
 
size_t size () const
 

Protected Attributes

std::set< Namem_anchorNames
 
CertContainerInterfacem_certs
 

Detailed Description

Static trust anchor group.

Definition at line 92 of file trust-anchor-group.hpp.

Constructor & Destructor Documentation

◆ StaticTrustAnchorGroup()

ndn::security::StaticTrustAnchorGroup::StaticTrustAnchorGroup ( CertContainerInterface certContainer,
const std::string &  id 
)

Create a static trust anchor group.

Parameters
certContainerReference to CertContainerInterface instance
idGroup id

Definition at line 56 of file trust-anchor-group.cpp.

Member Function Documentation

◆ add()

void ndn::security::StaticTrustAnchorGroup::add ( Certificate &&  cert)

Load static anchor cert.

Definition at line 62 of file trust-anchor-group.cpp.

◆ getId()

const std::string& ndn::security::TrustAnchorGroup::getId ( ) const
inlineinherited
Returns
group id

Definition at line 64 of file trust-anchor-group.hpp.

◆ refresh()

void ndn::security::TrustAnchorGroup::refresh ( )
virtualinherited

Request certificate refresh.

Reimplemented in ndn::security::DynamicTrustAnchorGroup.

Definition at line 49 of file trust-anchor-group.cpp.

◆ remove()

void ndn::security::StaticTrustAnchorGroup::remove ( const Name certName)

Remove static anchor certName.

Definition at line 73 of file trust-anchor-group.cpp.

◆ size()

size_t ndn::security::TrustAnchorGroup::size ( ) const
inherited
Returns
number of certificates in the group

Definition at line 43 of file trust-anchor-group.cpp.

Member Data Documentation

◆ m_anchorNames

std::set<Name> ndn::security::TrustAnchorGroup::m_anchorNames
protectedinherited

Definition at line 83 of file trust-anchor-group.hpp.

◆ m_certs

CertContainerInterface& ndn::security::TrustAnchorGroup::m_certs
protectedinherited

Definition at line 82 of file trust-anchor-group.hpp.