Fetch missing keys from the network.
More...
#include <certificate-fetcher-from-network.hpp>
Fetch missing keys from the network.
Definition at line 39 of file certificate-fetcher-from-network.hpp.
ndn::security::v2::CertificateFetcherFromNetwork::CertificateFetcherFromNetwork |
( |
Face & |
face | ) |
|
|
explicit |
Asynchronously fetch certificate.
- Precondition
- m_certStorage != nullptr
If the requested certificate exists in the storage, then this method will immediately call continueValidation with the certification. If certificate is not available, the implementation-specific doFetch will be called to asynchronously fetch certificate. The successfully retrieved certificate will be automatically added to the unverified cache of the certificate storage.
When the requested certificate is retrieved, continueValidation is called. Otherwise, the fetcher implementation call state->failed() with the appropriate error code and diagnostic message.
Definition at line 47 of file certificate-fetcher.cpp.
void ndn::security::v2::CertificateFetcher::setCertificateStorage |
( |
CertificateStorage & |
certStorage | ) |
|
|
inherited |
Assign certificate storage to check known certificate and to cache unverified ones.
- Note
- The supplied
certStorage
should be valid for the lifetime of CertificateFetcher
Definition at line 41 of file certificate-fetcher.cpp.
Face& ndn::security::v2::CertificateFetcherFromNetwork::m_face |
|
protected |