NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::security::v2::TrustAnchorGroup Class Reference

A group of trust anchors. More...

#include <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
 
size_t size () const
 
virtual void refresh ()
 Request certificate refresh. More...
 

Protected Attributes

CertContainerInterfacem_certs
 
std::set< Namem_anchorNames
 

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.

References ~TrustAnchorGroup().

◆ ~TrustAnchorGroup()

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

Referenced by TrustAnchorGroup().

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.

References nonstd::span_lite::size().

◆ 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.

References m_anchorNames.

◆ 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.

Member Data Documentation

◆ m_certs

◆ m_anchorNames

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

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