22 #ifndef NDN_CXX_SECURITY_CERTIFICATE_STORAGE_HPP
23 #define NDN_CXX_SECURITY_CERTIFICATE_STORAGE_HPP
106 loadAnchor(
const std::string& groupId,
const std::string& certfilePath,
Represents an Interest packet.
Represents an absolute name.
Represents a container for verified certificates.
Storage for trusted anchors, verified certificate cache, and unverified certificate cache.
const Certificate * findTrustedCert(const Interest &interestForCert) const
Find a trusted certificate in trust anchor container or in verified cache.
void cacheUnverifiedCert(Certificate &&cert)
Cache unverified certificate for a period of time (5 minutes).
const TrustAnchorContainer & getTrustAnchors() const
void resetAnchors()
Remove any previously loaded static or dynamic trust anchor.
CertificateCache m_unverifiedCertCache
void cacheVerifiedCert(Certificate &&cert)
Cache verified certificate a period of time (1 hour).
bool isCertKnown(const Name &certPrefix) const
Check if certificate exists in the verified/unverified cache or in the set of trust anchors.
const CertificateCache & getVerifiedCertCache() const
TrustAnchorContainer m_trustAnchors
void loadAnchor(const std::string &groupId, Certificate &&cert)
Load static trust anchor.
void resetVerifiedCerts()
Remove any cached verified certificates.
const CertificateCache & getUnverifiedCertCache() const
CertificateCache m_verifiedCertCache
Represents an NDN certificate.
A container for trust anchors.
Contains the ndn-cxx security framework.
::boost::chrono::nanoseconds nanoseconds