23 #ifndef NDN_VALIDATOR_CONFIG_HPP
24 #define NDN_VALIDATOR_CONFIG_HPP
26 #include "v2/validation-policy-config.hpp"
27 #include "v2/certificate-fetcher-from-network.hpp"
28 #include "v2/validator.hpp"
73 load(
const std::string& filePath)
75 policyConfig_.
load(filePath);
86 load(
const std::string& input,
const std::string& inputName)
88 policyConfig_.
load(input, inputName);
101 policyConfig_.
load(configSection, inputName);
ValidatorConfig extends Validator to implements a validator which can be set up via a configuration f...
Definition: validator-config.hpp:36
ValidatorConfig(const ptr_lib::shared_ptr< CertificateFetcher > &fetcher)
Create a ValidatorConfig to use the given certificate fetcher.
Definition: validator-config.hpp:44
The Face class provides the main methods for NDN communication.
Definition: face.hpp:86
BoostInfoTree is provided for compatibility with the Boost INFO property list format used in ndn-cxx...
Definition: boost-info-parser.hpp:46
void load(const BoostInfoTree &configSection, const std::string &inputName)
Load the configuration from the given configSection.
Definition: validator-config.hpp:99
The Validator class provides an interface for validating data and interest packets.
Definition: validator.hpp:55
void load(const std::string &filePath)
Load the configuration from the given config file.
CertificateFetcherFromNetwork extends CertificateFetcher to fetch missing certificates from the netwo...
Definition: certificate-fetcher-from-network.hpp:35
ValidationPolicy & getPolicy()
Get the ValidationPolicy given to the constructor.
Definition: validator.hpp:74
ValidatorConfig(Face &face)
Create a ValidatorConfig that uses a CertificateFetcherFromNetwork for the given Face.
Definition: validator-config.hpp:58
void load(const std::string &input, const std::string &inputName)
Load the configuration from the given input string.
Definition: validator-config.hpp:86
ValidationPolicyConfig implements a validator which can be set up via a configuration file...
Definition: validation-policy-config.hpp:42
void load(const std::string &filePath)
Load the configuration from the given config file.
Definition: validator-config.hpp:73