22 #ifndef NDN_CXX_SECURITY_TRUST_ANCHOR_GROUP_HPP
23 #define NDN_CXX_SECURITY_TRUST_ANCHOR_GROUP_HPP
28 #include <boost/filesystem/path.hpp>
161 boost::filesystem::path m_path;
Represents an absolute name.
virtual void remove(const Name &certName)=0
virtual void add(Certificate &&cert)=0
virtual ~CertContainerInterface()=default
Represents an NDN certificate.
Dynamic trust anchor group.
void refresh() override
Request certificate refresh.
DynamicTrustAnchorGroup(CertContainerInterface &certContainer, const std::string &id, const boost::filesystem::path &path, time::nanoseconds refreshPeriod, bool isDir=false)
Create a dynamic trust anchor group.
Static trust anchor group.
void add(Certificate &&cert)
Load static anchor cert.
StaticTrustAnchorGroup(CertContainerInterface &certContainer, const std::string &id)
Create a static trust anchor group.
void remove(const Name &certName)
Remove static anchor certName.
A group of trust anchors.
std::set< Name > m_anchorNames
TrustAnchorGroup(CertContainerInterface &certContainer, const std::string &id)
Create an anchor group.
CertContainerInterface & m_certs
virtual ~TrustAnchorGroup()
const std::string & getId() const
virtual void refresh()
Request certificate refresh.
boost::chrono::nanoseconds nanoseconds