22 #ifndef NDN_CXX_SECURITY_CERTIFICATE_FETCHER_HPP
23 #define NDN_CXX_SECURITY_CERTIFICATE_FETCHER_HPP
30 class CertificateRequest;
31 class CertificateStorage;
32 class ValidationState;
41 const shared_ptr<ValidationState>& state)>;
70 fetch(
const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
78 doFetch(
const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
Interface used by the validator to fetch missing certificates.
virtual void setCertificateStorage(CertificateStorage &certStorage)
Assign certificate storage to check known certificate and to cache unverified ones.
void fetch(const shared_ptr< CertificateRequest > &certRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation)
Asynchronously fetch certificate.
virtual ~CertificateFetcher()
CertificateStorage * m_certStorage
std::function< void(const Certificate &cert, const shared_ptr< ValidationState > &state)> ValidationContinuation
Storage for trusted anchors, verified certificate cache, and unverified certificate cache.
Represents an NDN certificate.
Common includes and macros used throughout the library.
Contains the ndn-cxx security framework.