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,
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;
149 #endif // NDN_SECURITY_V2_CERTIFICATE_BUNDLE_FETCHER_HPP time::milliseconds getBundleInterestLifetime() const
Copyright (c) 2011-2015 Regents of the University of California.
Interface used by the validator to fetch missing certificates.
boost::posix_time::time_duration milliseconds(long duration)
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
Catch-all error for security policy errors that don't fit in other categories.
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.