public class ValidatorConfig extends Validator
trustAnchors_, unverifiedCertificateCache_, verifiedCertificateCache_| Constructor and Description |
|---|
ValidatorConfig(CertificateFetcher fetcher) |
ValidatorConfig(Face face)
Create a ValidatorConfig that uses a CertificateFetcherFromNetwork for the
given Face.
|
| Modifier and Type | Method and Description |
|---|---|
void |
load(BoostInfoTree configSection,
String inputName)
Load the configuration from the given configSection.
|
void |
load(String filePath)
Load the configuration from the given config file.
|
void |
load(String input,
String inputName)
Load the configuration from the given input string.
|
getFetcher, getMaxDepth, getPolicy, setMaxDepth, validate, validatecacheUnverifiedCertificate, cacheVerifiedCertificate, findTrustedCertificate, getTrustAnchors, getUnverifiedCertificateCache, getVerifiedCertificateCache, isCertificateKnown, loadAnchor, loadAnchor, loadAnchor, resetAnchors, resetVerifiedCertificates, setCacheNowOffsetMilliseconds_public ValidatorConfig(CertificateFetcher fetcher)
public ValidatorConfig(Face face)
face - The face for the certificate fetcher to call expressInterest.public final void load(String filePath) throws IOException, ValidatorConfigError
filePath - The The path of the config file.IOExceptionValidatorConfigErrorpublic final void load(String input, String inputName) throws IOException, ValidatorConfigError
input - The contents of the configuration rules, with lines separated
by "\n" or "\r\n".inputName - Used for log messages, etc.IOExceptionValidatorConfigErrorpublic final void load(BoostInfoTree configSection, String inputName) throws ValidatorConfigError
configSection - The configuration section loaded from the config file.
It should have one "validator" section.inputName - Used for log messages, etc.ValidatorConfigErrorCopyright © 2019. All rights reserved.