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

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

Create an anchor group.

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

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

Member Function Documentation

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

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

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

Request certificate refresh.

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

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

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

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

Member Data Documentation

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

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

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

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