certificate-fetcher-from-network.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22 #ifndef NDN_SECURITY_V2_CERTIFICATE_FETCHER_FROM_NETWORK_HPP
23 #define NDN_SECURITY_V2_CERTIFICATE_FETCHER_FROM_NETWORK_HPP
24 
25 #include "certificate-fetcher.hpp"
26 
27 namespace ndn {
28 
29 namespace lp {
30 class Nack;
31 } // namespace lp
32 
33 namespace security {
34 namespace v2 {
35 
40 {
41 public:
42  explicit
44 
45 protected:
46  void
47  doFetch(const shared_ptr<CertificateRequest>& certRequest, const shared_ptr<ValidationState>& state,
48  const ValidationContinuation& continueValidation) override;
49 
50 private:
54  void
55  dataCallback(const Data& data,
56  const shared_ptr<CertificateRequest>& certRequest, const shared_ptr<ValidationState>& state,
57  const ValidationContinuation& continueValidation);
58 
66  void
67  nackCallback(const lp::Nack& nack,
68  const shared_ptr<CertificateRequest>& certRequest, const shared_ptr<ValidationState>& state,
69  const ValidationContinuation& continueValidation);
70 
76  void
77  timeoutCallback(const shared_ptr<CertificateRequest>& certRequest, const shared_ptr<ValidationState>& state,
78  const ValidationContinuation& continueValidation);
79 
80 protected:
82 };
83 
84 } // namespace v2
85 } // namespace security
86 } // namespace ndn
87 
88 #endif // NDN_SECURITY_V2_CERTIFICATE_FETCHER_FROM_NETWORK_HPP
Copyright (c) 2013-2017 Regents of the University of California.
Definition: common.hpp:66
Interface used by the validator to fetch missing certificates.
std::function< void(const Certificate &cert, const shared_ptr< ValidationState > &state)> ValidationContinuation
represents a Network Nack
Definition: nack.hpp:40
Provide a communication channel with local or remote NDN forwarder.
Definition: face.hpp:95
Represents a Data packet.
Definition: data.hpp:35