public abstract class ConfigChecker extends Object
| Constructor and Description |
|---|
ConfigChecker() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(boolean isForInterest,
Name packetName,
Name keyLocatorName,
ValidationState state)
Check if the packet name ane KeyLocator name satisfy this checker's
conditions.
|
protected abstract boolean |
checkNames(Name packetName,
Name keyLocatorName,
ValidationState state)
Check if the packet name ane KeyLocator name satisfy this checker's
conditions.
|
static ConfigChecker |
create(BoostInfoTree configSection)
Create a checker from the configuration section.
|
public final boolean check(boolean isForInterest,
Name packetName,
Name keyLocatorName,
ValidationState state)
throws ValidatorConfigError
isForInterest - True if packetName is for an Interest, false if for a
Data packet.packetName - The packet name. For a signed interest, the last two
components are skipped but not removed.keyLocatorName - The KeyLocator's name.state - This calls state.fail() if the packet is invalid.ValidatorConfigErrorpublic static ConfigChecker create(BoostInfoTree configSection) throws ValidatorConfigError
configSection - The section containing the definition of the checker,
e.g. one of "validation.rule.checker".ValidatorConfigErrorprotected abstract boolean checkNames(Name packetName, Name keyLocatorName, ValidationState state) throws ValidatorConfigError
packetName - The packet name, which is already stripped of signature
components if this is a signed Interest name.keyLocatorName - The KeyLocator's name.state - This calls state.fail() if the packet is invalid.ValidatorConfigErrorCopyright © 2019. All rights reserved.