Actions
CommandValidatorConf » History » Revision 4
« Previous |
Revision 4/55
(diff)
| Next »
Yingdi Yu, 03/17/2014 03:33 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 defined by the property name.
Each rule must be specified with a usage (either for data validation, or interest validation).
The usage is defined by the property for.
Each
Updated by Yingdi Yu over 11 years ago · 55 revisions