29 : m_verifiedCertCache(1_h)
30 , m_unverifiedCertCache(5_min)
38 if (cert !=
nullptr) {
Represents an Interest packet.
Represents an absolute name.
Represents a container for verified certificates.
void insert(const Certificate &cert)
Insert certificate into cache.
void clear()
Remove all certificates from cache.
const Certificate * find(const Name &certPrefix) const
Get certificate given key name.
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.
void insert(const std::string &groupId, Certificate &&cert)
Insert a static trust anchor.
const Certificate * find(const Name &keyName) const
Search for certificate across all groups (longest prefix match).
void clear()
Remove all static or dynamic anchors.
boost::chrono::nanoseconds nanoseconds