All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
ndn::TrustAnchorGroup Class Reference

TrustAnchorGroup represents a group of trust anchors which implement the CertificateContainerInterface. More...

#include <trust-anchor-group.hpp>

Inheritance diagram for ndn::TrustAnchorGroup:
ndn::DynamicTrustAnchorGroup ndn::StaticTrustAnchorGroup

Public Member Functions

 TrustAnchorGroup (CertificateContainerInterface &certificateContainer, const std::string &id)
 Create a TrustAnchorGroup to use an existing container. More...
 
const std::string & getId () const
 Get the group id given to the constructor. More...
 
size_t size () const
 Get the number of certificates in the group. More...
 
virtual void refresh ()
 Request a certificate refresh. More...
 

Static Public Member Functions

static ptr_lib::shared_ptr
< CertificateV2
readCertificate (const std::string &filePath)
 Read a base-64-encoded certificate from a file. More...
 

Protected Attributes

CertificateContainerInterfacecertificates_
 
std::set< NameanchorNames_
 

Detailed Description

TrustAnchorGroup represents a group of trust anchors which implement the CertificateContainerInterface.

Constructor & Destructor Documentation

ndn::TrustAnchorGroup::TrustAnchorGroup ( CertificateContainerInterface certificateContainer,
const std::string &  id 
)
inline

Create a TrustAnchorGroup to use an existing container.

Parameters
certificateContainerThe existing certificate container.
idThe group ID.

Member Function Documentation

const std::string& ndn::TrustAnchorGroup::getId ( ) const
inline

Get the group id given to the constructor.

Returns
The group id.
ptr_lib::shared_ptr< CertificateV2 > ndn::TrustAnchorGroup::readCertificate ( const std::string &  filePath)
static

Read a base-64-encoded certificate from a file.

Parameters
filePathThe certificate file path.
Returns
The decoded certificate, or null if there is an error.
void ndn::TrustAnchorGroup::refresh ( )
virtual

Request a certificate refresh.

The base method does nothing.

Reimplemented in ndn::DynamicTrustAnchorGroup.

size_t ndn::TrustAnchorGroup::size ( ) const
inline

Get the number of certificates in the group.

Returns
The number of certificates.

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