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