22 #ifndef NDN_CXX_SECURITY_CERTIFICATE_BUNDLE_FETCHER_HPP
23 #define NDN_CXX_SECURITY_CERTIFICATE_BUNDLE_FETCHER_HPP
70 doFetch(
const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
83 fetchFirstBundleSegment(
const Name& bundleNamePrefix,
84 const shared_ptr<CertificateRequest>& certRequest,
85 const shared_ptr<ValidationState>& state,
93 const shared_ptr<CertificateRequest>& certRequest,
94 const shared_ptr<ValidationState>& state,
114 deriveBundleName(
const Name& name);
120 dataCallback(
const Data& data,
bool isSegmentZeroExpected,
121 const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
129 const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
136 timeoutCallback(
const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
140 unique_ptr<CertificateFetcher> m_inner;
Represents a Data packet.
Provide a communication channel with local or remote NDN forwarder.
Represents an absolute name.
Provides a tag type for simple types.
Represents a Network Nack.
Represents a name component.
Fetch certificate bundle from the network.
void setBundleInterestLifetime(time::milliseconds time)
Set the lifetime of certificate bundle interest.
void doFetch(const shared_ptr< CertificateRequest > &certRequest, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation) override
Asynchronous certificate fetching implementation.
void setCertificateStorage(CertificateStorage &certStorage) override
Set the storage for this and inner certificate fetcher.
time::milliseconds getBundleInterestLifetime() const
CertificateBundleFetcher(unique_ptr< CertificateFetcher > inner, Face &face)
Interface used by the validator to fetch missing certificates.
std::function< void(const Certificate &cert, const shared_ptr< ValidationState > &state)> ValidationContinuation
Storage for trusted anchors, verified certificate cache, and unverified certificate cache.
boost::chrono::milliseconds milliseconds