Class: ConfigChecker

ConfigChecker()

new ConfigChecker()

A ConfigChecker is an abstract base class for ConfigNameRelationChecker, etc. used by ValidatorConfig to check if a packet name and KeyLocator satisfy the conditions in a configuration section.
Source:

Methods

(static) create(configSection) → {ConfigChecker}

Create a checker from the configuration section.
Parameters:
Name Type Description
configSection BoostInfoTree The section containing the definition of the checker, e.g. one of "validation.rule.checker".
Source:
Returns:
A new checker created from the configuration section.
Type
ConfigChecker

(static) createCustomizedChecker_(configSection) → {ConfigChecker}

Parameters:
Name Type Description
configSection BoostInfoTree
Source:
Returns:
Type
ConfigChecker

(static) createHierarchicalChecker_(configSection) → {ConfigChecker}

Parameters:
Name Type Description
configSection BoostInfoTree
Source:
Returns:
Type
ConfigChecker

(static) createKeyLocatorChecker_(configSection) → {ConfigChecker}

Parameters:
Name Type Description
configSection BoostInfoTree
Source:
Returns:
Type
ConfigChecker

(static) createKeyLocatorNameChecker_(configSection) → {ConfigChecker}

Parameters:
Name Type Description
configSection BoostInfoTree
Source:
Returns:
Type
ConfigChecker

check(isForInterest, packetName, keyLocatorName, state) → {boolean}

Check if the packet name ane KeyLocator name satisfy this checker's conditions.
Parameters:
Name Type Description
isForInterest boolean True if packetName is for an Interest, false if for a Data packet.
packetName Name The packet name. For a signed interest, the last two components are skipped but not removed.
keyLocatorName Name The KeyLocator's name.
state ValidationState This calls state.fail() if the packet is invalid.
Source:
Returns:
True if further signature verification is needed, or false if the packet is immediately determined to be invalid in which case this calls state.fail() with the proper code and message.
Type
boolean

checkNames(packetName, keyLocatorName, state) → {boolean}

Check if the packet name ane KeyLocator name satisfy this checker's conditions.
Parameters:
Name Type Description
packetName Name The packet name, which is already stripped of signature components if this is a signed Interest name.
keyLocatorName Name The KeyLocator's name.
state ValidationState This calls state.fail() if the packet is invalid.
Source:
Returns:
True if further signature verification is needed, or false if the packet is immediately determined to be invalid in which case this calls state.fail() with the proper code and message.
Type
boolean