NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
39
class
CertificateFetcherFromNetwork
:
public
CertificateFetcher
40
{
41
public
:
42
explicit
43
CertificateFetcherFromNetwork
(
Face
&
face
);
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
:
81
Face
&
m_face
;
82
};
83
84
}
// namespace v2
85
}
// namespace security
86
}
// namespace ndn
87
88
#endif // NDN_SECURITY_V2_CERTIFICATE_FETCHER_FROM_NETWORK_HPP
ndn::security::v2::CertificateFetcherFromNetwork
Fetch missing keys from the network.
Definition:
certificate-fetcher-from-network.hpp:39
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::security::v2::CertificateFetcher
Interface used by the validator to fetch missing certificates.
Definition:
certificate-fetcher.hpp:39
ndn::security::v2::CertificateFetcher::ValidationContinuation
std::function< void(const Certificate &cert, const shared_ptr< ValidationState > &state)> ValidationContinuation
Definition:
certificate-fetcher.hpp:43
ndn::lp::Nack
represents a Network Nack
Definition:
nack.hpp:40
websocketpp::transport::asio::socket::error::security
Catch-all error for security policy errors that don't fit in other categories.
Definition:
base.hpp:79
ndn::Face
Provide a communication channel with local or remote NDN forwarder.
Definition:
face.hpp:95
ndn::security::v2::CertificateFetcherFromNetwork::m_face
Face & m_face
Definition:
certificate-fetcher-from-network.hpp:81
face
ndn::lp::tlv::Nack
Definition:
tlv.hpp:39
ndn::lp
Definition:
cache-policy.cpp:28
certificate-fetcher.hpp
ndn::Data
Represents a Data packet.
Definition:
data.hpp:35
ndnSIM
ndn-cxx
src
security
v2
certificate-fetcher-from-network.hpp
Generated on Thu Nov 2 2017 03:30:28 for ndnSIM by
1.8.11