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