22 #ifndef NDN_CXX_SECURITY_CERTIFICATE_BUNDLE_FETCHER_HPP
23 #define NDN_CXX_SECURITY_CERTIFICATE_BUNDLE_FETCHER_HPP
52 return m_bundleInterestLifetime;
61 m_bundleInterestLifetime = time;
72 doFetch(
const shared_ptr<CertificateRequest>& certRequest,
73 const shared_ptr<ValidationState>& state,
86 fetchFirstBundleSegment(
const Name& bundleNamePrefix,
87 const shared_ptr<CertificateRequest>& certRequest,
88 const shared_ptr<ValidationState>& state,
96 const shared_ptr<CertificateRequest>& certRequest,
97 const shared_ptr<ValidationState>& state,
117 deriveBundleName(
const Name& name);
123 dataCallback(
const Data& data,
bool isSegmentZeroExpected,
124 const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
132 const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
139 timeoutCallback(
const shared_ptr<CertificateRequest>& certRequest,
const shared_ptr<ValidationState>& state,
143 unique_ptr<CertificateFetcher> m_inner;
Represents a Data packet.
Provide a communication channel with local or remote NDN forwarder.
Represents an absolute name.
Represents a Network Nack.
Represents a name component.
Fetch certificate bundle from the network.
CertificateBundleFetcher(unique_ptr< CertificateFetcher > inner, Face &face)
time::milliseconds getBundleInterestLifetime() const
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.
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.
Contains the ndn-cxx security framework.
::boost::chrono::milliseconds milliseconds