22 #ifndef NDN_SECURITY_V2_TRUST_ANCHOR_GROUP_HPP
23 #define NDN_SECURITY_V2_TRUST_ANCHOR_GROUP_HPP
25 #include "../../data.hpp"
28 #include <boost/filesystem/path.hpp>
45 remove(
const Name& certName) = 0;
114 remove(
const Name& certName);
153 const boost::filesystem::path& path, time::nanoseconds refreshPeriod,
161 boost::filesystem::path m_path;
162 time::nanoseconds m_refreshPeriod;
170 #endif // NDN_SECURITY_V2_TRUST_ANCHOR_GROUP_HPP
TrustAnchorGroup(CertContainerInterface &certContainer, const std::string &id)
Create an anchor group.
Copyright (c) 2013-2016 Regents of the University of California.
The certificate following the certificate format naming convention.
virtual void refresh()
Request certificate refresh.
virtual ~TrustAnchorGroup()
std::set< Name > m_anchorNames
A group of trust anchors.
Static trust anchor group.
void refresh() override
Request certificate refresh.
virtual void add(Certificate &&cert)=0
CertContainerInterface & m_certs
Name abstraction to represent an absolute name.
void add(Certificate &&cert)
Load static anchor cert.
const std::string & getId() const
Dynamic trust anchor group.
virtual ~CertContainerInterface()=default
DynamicTrustAnchorGroup(CertContainerInterface &certContainer, const std::string &id, const boost::filesystem::path &path, time::nanoseconds refreshPeriod, bool isDir=false)
Create a dynamic trust anchor group.
StaticTrustAnchorGroup(CertContainerInterface &certContainer, const std::string &id)
Create a static trust anchor group.