CommandValidatorConf » History » Revision 5
Revision 4 (Yingdi Yu, 03/17/2014 03:33 PM) → Revision 5/55 (Yingdi Yu, 03/17/2014 03:40 PM)
# Validator Configuration File Format You can set up a `Validator` via a configuration file. Next, we will show you how to write a configuration file. The configuration file consists of **`rules`** that will be used in validation. Here is an example of configuration file containing two rules. rule { for data name "Simple Rule" type self-defined definition { target { type name name "/localhost/example" condition isPrefixOf } signer { type name rule "/ndn/edu/ucla/KEY/yingdi/ksk-1234/ID-CERT" condition equal } } } rule { for data name "Testbed Validation Rule" type hierarchical trust-anchor { type file file-name "testbed-trust-anchor.cert" } } Each rule has a unique name (which should be unique in the configuration file), e.g., "Simple Rule", "Testbed Validation Rule". The rule name is specified in defined by the property **`name`**. Each rule must be specified with a usage which is specified in the property **`for`**. Only two usages can be specified so far: either (either for data validation (i.e., **`fordata`**) validation, or for interest validation (i.e., **`forinterest`**). validation). The usage is defined by the property **`for`**. Each rule must have