All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
List of all members
ndn::ValidatorNull Class Reference

A ValidatorNull extends Validator with an "accept-all" policy and an offline certificate fetcher. More...

#include <validator-null.hpp>

Inheritance diagram for ndn::ValidatorNull:
ndn::Validator ndn::CertificateStorage

Additional Inherited Members

- Public Member Functions inherited from ndn::Validator
 Validator (const ptr_lib::shared_ptr< ValidationPolicy > &policy, const ptr_lib::shared_ptr< CertificateFetcher > &certificateFetcher=ptr_lib::make_shared< CertificateFetcherOffline >())
 Create a Validator with the policy and fetcher. More...
 
ValidationPolicy & getPolicy ()
 Get the ValidationPolicy given to the constructor. More...
 
CertificateFetcher & getFetcher ()
 Get the CertificateFetcher given to (or created in) the constructor. More...
 
void setMaxDepth (size_t maxDepth)
 Set the maximum depth of the certificate chain. More...
 
size_t getMaxDepth () const
 Get the maximum depth of the certificate chain. More...
 
void validate (const Data &data, const DataValidationSuccessCallback &successCallback, const DataValidationFailureCallback &failureCallback)
 Asynchronously validate the Data packet. More...
 
void validate (const Interest &interest, const InterestValidationSuccessCallback &successCallback, const InterestValidationFailureCallback &failureCallback)
 Asynchronously validate the Interest. More...
 
- Public Member Functions inherited from ndn::CertificateStorage
ptr_lib::shared_ptr
< CertificateV2 > 
findTrustedCertificate (const Interest &interestForCertificate)
 Find a trusted certificate in the trust anchor container or in the verified cache. More...
 
bool isCertificateKnown (const Name &certificatePrefix)
 Check if the certificate with the given name prefix exists in the verified cache, the unverified cache, or in the set of trust anchors. More...
 
void cacheUnverifiedCertificate (const CertificateV2 &certificate)
 Cache the unverified certificate for a period of time (5 minutes). More...
 
const TrustAnchorContainer & getTrustAnchors () const
 Get the trust anchor container. More...
 
const CertificateCacheV2 & getVerifiedCertificateCache () const
 Get the verified certificate cache. More...
 
const CertificateCacheV2 & getUnverifiedCertificateCache () const
 Get the unverified certificate cache. More...
 
void loadAnchor (const std::string &groupId, const CertificateV2 &certificate)
 Load a static trust anchor. More...
 
void loadAnchor (const std::string &groupId, const std::string &path, Milliseconds refreshPeriod, bool isDirectory=false)
 Load dynamic trust anchors. More...
 
void resetAnchors ()
 Remove any previously loaded static or dynamic trust anchors.
 
void cacheVerifiedCertificate (const CertificateV2 &certificate)
 Cache the verified certificate a period of time (1 hour). More...
 
void resetVerifiedCertificates ()
 Remove any cached verified certificates.
 
void setCacheNowOffsetMilliseconds_ (Milliseconds nowOffsetMilliseconds)
 Set the offset when the cache insert() and refresh() get the current time, which should only be used for testing. More...
 
- Protected Attributes inherited from ndn::CertificateStorage
TrustAnchorContainer trustAnchors_
 
CertificateCacheV2 verifiedCertificateCache_
 
CertificateCacheV2 unverifiedCertificateCache_
 

Detailed Description

A ValidatorNull extends Validator with an "accept-all" policy and an offline certificate fetcher.


The documentation for this class was generated from the following files: