29 : v2::Validator(make_unique<v2::ValidationPolicyCommandInterest>(make_unique<v2::ValidationPolicyConfig>(),
32 , m_policyConfig(static_cast<v2::ValidationPolicyConfig&>(getPolicy().getInnerPolicy()))
37 :
ValidatorConfig(make_unique<v2::CertificateFetcherFromNetwork>(face), options)
44 m_policyConfig.
load(filename);
50 m_policyConfig.
load(input, filename);
56 m_policyConfig.
load(input, filename);
61 const std::string& filename)
63 m_policyConfig.
load(configSection, filename);
void load(const std::string &filename)
Helper for validator that uses CommandInterest + Config policy and NetworkFetcher.
ValidatorConfig(std::unique_ptr< v2::CertificateFetcher > fetcher, const Options &options=Options())
Provide a communication channel with local or remote NDN forwarder.
boost::property_tree::ptree ConfigSection
void load(const std::string &filename)
Load policy from file filename.