22 #ifndef NDN_CXX_SECURITY_CERTIFICATE_STORAGE_HPP
23 #define NDN_CXX_SECURITY_CERTIFICATE_STORAGE_HPP
108 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 loadAnchor(const std::string &groupId, Certificate &&cert)
Load static trust anchor.
const CertificateCache & getUnverifiedCertCache() const
CertificateCache m_unverifiedCertCache
void resetVerifiedCerts()
Remove any cached verified certificates.
const TrustAnchorContainer & getTrustAnchors() const
CertificateCache m_verifiedCertCache
TrustAnchorContainer m_trustAnchors
void resetAnchors()
Remove any previously loaded static or dynamic trust anchor.
const CertificateCache & getVerifiedCertCache() const
void cacheVerifiedCert(Certificate &&cert)
Cache verified certificate a period of time (1 hour).
void cacheUnverifiedCert(Certificate &&cert)
Cache unverified certificate for a period of time (5 minutes).
bool isCertKnown(const Name &certPrefix) const
Check if certificate exists in the verified/unverified cache or in the set of trust anchors.
Represents an NDN certificate.
A container for trust anchors.
boost::chrono::nanoseconds nanoseconds