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 void loadAnchor(const std::string &groupId, Certificate &&cert)
load static trust anchor. 
The certificate following the certificate format naming convention. 
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...
const Certificate * findTrustedCert(const Interest &interestForCert) const
Find a trusted certificate in trust anchor container or in verified cache. 
Represents a container for verified certificates. 
const CertificateCache & getVerifiedCertCache() const
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) 
void resetAnchors()
remove any previously loaded static or dynamic trust anchor 
Represents an absolute name. 
CertificateCache m_verifiedCertCache
TrustAnchorContainer m_trustAnchors
const TrustAnchorContainer & getTrustAnchors() const