Validator with "accept-all" policy and offline certificate fetcher. More...
#include <validator-null.hpp>


Public Member Functions | |
| ValidatorNull () | |
Public Member Functions inherited from ndn::security::v2::Validator | |
| Validator (unique_ptr< ValidationPolicy > policy, unique_ptr< CertificateFetcher > certFetcher) | |
| Validator constructor. More... | |
| ~Validator () | |
| ValidationPolicy & | getPolicy () |
| CertificateFetcher & | getFetcher () |
| void | setMaxDepth (size_t depth) |
| Set the maximum depth of the certificate chain. More... | |
| size_t | getMaxDepth () const |
| void | validate (const Data &data, const DataValidationSuccessCallback &successCb, const DataValidationFailureCallback &failureCb) |
Asynchronously validate data. More... | |
| void | validate (const Interest &interest, const InterestValidationSuccessCallback &successCb, const InterestValidationFailureCallback &failureCb) |
Asynchronously validate interest. More... | |
| void | loadAnchor (const std::string &groupId, Certificate &&cert) |
| load static trust anchor. More... | |
| void | loadAnchor (const std::string &groupId, const std::string &certfilePath, time::nanoseconds refreshPeriod, bool isDir=false) |
| load dynamic trust anchors. More... | |
| void | resetAnchors () |
| remove any previously loaded static or dynamic trust anchor More... | |
| void | cacheVerifiedCertificate (Certificate &&cert) |
Cache verified cert a period of time (1 hour) More... | |
| void | resetVerifiedCertificates () |
| Remove any cached verified certificates. More... | |
Public Member Functions inherited from ndn::security::v2::CertificateStorage | |
| CertificateStorage () | |
| const Certificate * | findTrustedCert (const Interest &interestForCert) const |
| Find a trusted certificate in trust anchor container or in verified cache. More... | |
| bool | isCertKnown (const Name &certPrefix) const |
| Check if certificate exists in verified, unverified cache, or in the set of trust anchors. More... | |
| void | cacheUnverifiedCert (Certificate &&cert) |
| Cache unverified certificate for a period of time (5 minutes) More... | |
| const TrustAnchorContainer & | getTrustAnchors () const |
| const CertificateCache & | getVerifiedCertCache () const |
| const CertificateCache & | getUnverifiedCertCache () const |
Additional Inherited Members | |
Protected Member Functions inherited from ndn::security::v2::CertificateStorage | |
| void | loadAnchor (const std::string &groupId, Certificate &&cert) |
| load static trust anchor. More... | |
| void | loadAnchor (const std::string &groupId, const std::string &certfilePath, time::nanoseconds refreshPeriod, bool isDir=false) |
| load dynamic trust anchors. More... | |
| void | resetAnchors () |
| remove any previously loaded static or dynamic trust anchor More... | |
| void | cacheVerifiedCert (Certificate &&cert) |
| Cache verified certificate a period of time (1 hour) More... | |
| void | resetVerifiedCerts () |
| Remove any cached verified certificates. More... | |
Protected Attributes inherited from ndn::security::v2::CertificateStorage | |
| TrustAnchorContainer | m_trustAnchors |
| CertificateCache | m_verifiedCertCache |
| CertificateCache | m_unverifiedCertCache |
Validator with "accept-all" policy and offline certificate fetcher.
Definition at line 34 of file validator-null.hpp.
| ndn::security::v2::ValidatorNull::ValidatorNull | ( | ) |
Definition at line 30 of file validator-null.cpp.