ndn::security::ValidatorConfig Class Reference

Helper for validator that uses SignedInterest + CommandInterest + Config policy and NetworkFetcher. More...

#include <ndn-cxx/security/validator-config.hpp>

+ Inheritance diagram for ndn::security::ValidatorConfig:
+ Collaboration diagram for ndn::security::ValidatorConfig:

Public Types

using CommandInterestOptions = ValidationPolicyCommandInterest::Options
 
using SignedInterestOptions = ValidationPolicySignedInterest::Options
 

Public Member Functions

 ValidatorConfig (Face &face, const CommandInterestOptions &ciOptions={}, const SignedInterestOptions &siOptions={})
 
 ValidatorConfig (std::unique_ptr< CertificateFetcher > fetcher, const CommandInterestOptions &ciOptions={}, const SignedInterestOptions &siOptions={})
 
void load (const std::string &filename)
 
void load (const std::string &input, const std::string &filename)
 
void load (const validator_config::ConfigSection &configSection, const std::string &filename)
 
void load (std::istream &input, const std::string &filename)
 
 Validator (unique_ptr< ValidationPolicy > policy, unique_ptr< CertificateFetcher > certFetcher)
 Validator constructor. More...
 

Detailed Description

Helper for validator that uses SignedInterest + CommandInterest + Config policy and NetworkFetcher.

Definition at line 37 of file validator-config.hpp.

Member Typedef Documentation

◆ CommandInterestOptions

using ndn::security::ValidatorConfig::CommandInterestOptions = ValidationPolicyCommandInterest::Options

Definition at line 42 of file validator-config.hpp.

◆ SignedInterestOptions

using ndn::security::ValidatorConfig::SignedInterestOptions = ValidationPolicySignedInterest::Options

Definition at line 41 of file validator-config.hpp.

Constructor & Destructor Documentation

◆ ValidatorConfig() [1/2]

ndn::security::ValidatorConfig::ValidatorConfig ( std::unique_ptr< CertificateFetcher fetcher,
const CommandInterestOptions ciOptions = {},
const SignedInterestOptions siOptions = {} 
)
explicit

Definition at line 28 of file validator-config.cpp.

◆ ValidatorConfig() [2/2]

ndn::security::ValidatorConfig::ValidatorConfig ( Face face,
const CommandInterestOptions ciOptions = {},
const SignedInterestOptions siOptions = {} 
)
explicit

Definition at line 41 of file validator-config.cpp.

Member Function Documentation

◆ load() [1/4]

void ndn::security::ValidatorConfig::load ( const std::string &  filename)

Definition at line 49 of file validator-config.cpp.

◆ load() [2/4]

void ndn::security::ValidatorConfig::load ( const std::string &  input,
const std::string &  filename 
)

Definition at line 55 of file validator-config.cpp.

◆ load() [3/4]

void ndn::security::ValidatorConfig::load ( const validator_config::ConfigSection &  configSection,
const std::string &  filename 
)

Definition at line 67 of file validator-config.cpp.

◆ load() [4/4]

void ndn::security::ValidatorConfig::load ( std::istream &  input,
const std::string &  filename 
)

Definition at line 61 of file validator-config.cpp.

◆ Validator()

Validator::Validator

Validator constructor.

Parameters
policyValidation policy to be associated with the validator.
certFetcherCertificate fetcher implementation.

Definition at line 70 of file validator.cpp.