Class: ValidatorConfig

ValidatorConfig(fetcher, face)

new ValidatorConfig(fetcher, face)

ValidatorConfig extends Validator to implements a validator which can be set up via a configuration file. The constructor has two forms: ValidatorConfig(fetcher) - Create a ValidatorConfig that uses the given certificate fetcher. ValidatorConfig(face) - Create a ValidatorConfig that uses a CertificateFetcherFromNetwork for the given Face.
Parameters:
Name Type Description
fetcher CertificateFetcher the certificate fetcher to use.
face Face The face for the certificate fetcher to call expressInterest.
Source:

Methods

load(filePath, input, The, inputName)

There are three forms of load: load(filePath) - Load the configuration from the given config file. load(input, inputName) - Load the configuration from the given input string. load(configSection, inputName) - Load the configuration from the given configSection. Each of these forms of load replaces any existing configuration.
Parameters:
Name Type Description
filePath String The The path of the config file.
input String The contents of the configuration rules, with lines separated by "\n" or "\r\n".
The BoostInfoTree configuration section loaded from the config file. It should have one "validator" section.
inputName String Used for log messages, etc.
Source: