22 #ifndef NDN_SECURITY_V2_CERTIFICATE_BUNDLE_FETCHER_HPP 23 #define NDN_SECURITY_V2_CERTIFICATE_BUNDLE_FETCHER_HPP 68 doFetch(
const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
81 fetchFirstBundleSegment(
const Name& bundleNamePrefix,
82 const shared_ptr<CertificateRequest>& certRequest,
83 const shared_ptr<ValidationState>& state,
91 const shared_ptr<CertificateRequest>& certRequest,
92 const shared_ptr<ValidationState>& state,
112 deriveBundleName(
const Name& name);
118 dataCallback(
const Data& data,
bool isSegmentZeroExpected,
119 const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
127 const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
134 timeoutCallback(
const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
138 unique_ptr<CertificateFetcher> m_inner;
142 time::milliseconds m_bundleInterestLifetime;
149 #endif // NDN_SECURITY_V2_CERTIFICATE_BUNDLE_FETCHER_HPP time::milliseconds getBundleInterestLifetime() const
Copyright (c) 2013-2017 Regents of the University of California.
Interface used by the validator to fetch missing certificates.
void setBundleInterestLifetime(time::milliseconds time)
Set the lifetime of certificate bundle interest.
std::function< void(const Certificate &cert, const shared_ptr< ValidationState > &state)> ValidationContinuation
CertificateBundleFetcher(unique_ptr< CertificateFetcher > inner, Face &face)
represents a Network Nack
provides a tag type for simple types
Storage for trusted anchors, verified certificate cache, and unverified certificate cache...
Provide a communication channel with local or remote NDN forwarder.
void doFetch(const shared_ptr< CertificateRequest > &certRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation) override
Asynchronous certificate fetching implementation.
Represents an absolute name.
Fetch certificate bundle from the network.
Component holds a read-only name component value.
Represents a Data packet.
void setCertificateStorage(CertificateStorage &certStorage) override
Set the storage for this and inner certificate fetcher.