CommandValidatorConf » History » Revision 5
« Previous |
Revision 5/55
(diff)
| Next »
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 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 for data validation (i.e., fordata
) or for interest validation (i.e., forinterest
).
Each rule must have
Updated by Yingdi Yu over 10 years ago · 55 revisions