Actions
CommandValidatorConf » History » Revision 3
« Previous |
Revision 3/55
(diff)
| Next »
Yingdi Yu, 03/17/2014 03:24 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 contains rules that will be applied by Validator
.
Here is an example of configuration file.
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"
}
}
This configuration file consists of two rules.
Each rule has its own name (which should be unique in the configuration file).
Updated by Yingdi Yu over 10 years ago · 55 revisions