ndn::security::v2::TrustAnchorGroup Class Reference

A group of trust anchors. More...

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

+ Inheritance diagram for ndn::security::v2::TrustAnchorGroup:
+ Collaboration diagram for ndn::security::v2::TrustAnchorGroup:

Public Member Functions

 TrustAnchorGroup (CertContainerInterface &certContainer, const std::string &id)
 Create an anchor group. More...
 
virtual ~TrustAnchorGroup ()
 
const std::string & getId () const
 
virtual void refresh ()
 Request certificate refresh. More...
 
size_t size () const
 

Protected Attributes

std::set< Namem_anchorNames
 
CertContainerInterfacem_certs
 

Detailed Description

A group of trust anchors.

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

Constructor & Destructor Documentation

◆ TrustAnchorGroup()

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

Create an anchor group.

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

◆ ~TrustAnchorGroup()

ndn::security::v2::TrustAnchorGroup::~TrustAnchorGroup ( )
virtualdefault

Member Function Documentation

◆ getId()

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

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

◆ refresh()

void ndn::security::v2::TrustAnchorGroup::refresh ( )
virtual

Request certificate refresh.

Reimplemented in ndn::security::v2::DynamicTrustAnchorGroup.

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

◆ size()

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

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

Member Data Documentation

◆ m_anchorNames

std::set<Name> ndn::security::v2::TrustAnchorGroup::m_anchorNames
protected

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

◆ m_certs

CertContainerInterface& ndn::security::v2::TrustAnchorGroup::m_certs
protected

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