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

Static trust anchor group. More...

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

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 62 of file trust-anchor-group.cpp.

Member Function Documentation

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

Load static anchor cert.

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

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

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

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

Request certificate refresh.

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

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

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

Remove static anchor certName.

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

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

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

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

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