22 #ifndef NDN_SECURITY_V2_CERTIFICATE_STORAGE_HPP 23 #define NDN_SECURITY_V2_CERTIFICATE_STORAGE_HPP 109 loadAnchor(
const std::string& groupId,
const std::string& certfilePath,
110 time::nanoseconds refreshPeriod,
bool isDir =
false);
143 #endif // NDN_SECURITY_V2_CERTIFICATE_STORAGE_HPP const CertificateCache & getVerifiedCertCache() const
void loadAnchor(const std::string &groupId, Certificate &&cert)
load static trust anchor.
Copyright (c) 2013-2017 Regents of the University of California.
The certificate following the certificate format naming convention.
const TrustAnchorContainer & getTrustAnchors() const
void cacheUnverifiedCert(Certificate &&cert)
Cache unverified certificate for a period of time (5 minutes)
Represents an Interest packet.
CertificateCache m_unverifiedCertCache
bool isCertKnown(const Name &certPrefix) const
Check if certificate exists in verified, unverified cache, or in the set of trust anchors...
Represents a container for verified certificates.
represents a container for trust anchors.
void resetVerifiedCerts()
Remove any cached verified certificates.
const CertificateCache & getUnverifiedCertCache() const
Storage for trusted anchors, verified certificate cache, and unverified certificate cache...
void cacheVerifiedCert(Certificate &&cert)
Cache verified certificate a period of time (1 hour)
const Certificate * findTrustedCert(const Interest &interestForCert) const
Find a trusted certificate in trust anchor container or in verified cache.
void resetAnchors()
remove any previously loaded static or dynamic trust anchor
Represents an absolute name.
CertificateCache m_verifiedCertCache
TrustAnchorContainer m_trustAnchors