22 #ifndef NDN_CXX_SECURITY_CERTIFICATE_FETCHER_FROM_NETWORK_HPP
23 #define NDN_CXX_SECURITY_CERTIFICATE_FETCHER_FROM_NETWORK_HPP
51 doFetch(
const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
59 const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
69 const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
78 timeoutCallback(
const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
Represents a Data packet.
Provide a communication channel with local or remote NDN forwarder.
Represents a Network Nack.
Generic time-based scheduler.
Fetch missing keys from the network.
CertificateFetcherFromNetwork(Face &face)
void doFetch(const shared_ptr< CertificateRequest > &certRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation) override
Asynchronous certificate fetching implementation.
void dataCallback(const Data &data, const shared_ptr< CertificateRequest > &certRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation)
Callback invoked when certificate is retrieved.
void nackCallback(const lp::Nack &nack, const shared_ptr< CertificateRequest > &certRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation)
Callback invoked when interest for fetching certificate gets NACKed.
void timeoutCallback(const shared_ptr< CertificateRequest > &certRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation)
Callback invoked when interest for fetching certificate times out.
Interface used by the validator to fetch missing certificates.
std::function< void(const Certificate &cert, const shared_ptr< ValidationState > &state)> ValidationContinuation