ndn::security::v2::StaticTrustAnchorGroup Class Reference

Static trust anchor group. More...

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

+ Inheritance diagram for ndn::security::v2::StaticTrustAnchorGroup:
+ Collaboration diagram for ndn::security::v2::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 94 of file trust-anchor-group.hpp.

Constructor & Destructor Documentation

◆ StaticTrustAnchorGroup()

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

Create a static trust anchor group.

Parameters
certContainerReference to CertContainerInterface instance
idGroup id

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

Member Function Documentation

◆ add()

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

Load static anchor cert.

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

◆ getId()

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

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

◆ refresh()

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

Request certificate refresh.

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

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

◆ remove()

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

Remove static anchor certName.

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

◆ size()

size_t ndn::security::v2::TrustAnchorGroup::size ( ) const
inherited
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
protectedinherited

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

◆ m_certs

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

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