Classes | |
class | Checker |
class | Error |
class | Filter |
Filter is one of the classes used by ValidatorConfig. More... | |
class | HyperRelationChecker |
class | NameRelationChecker |
class | RegexChecker |
class | RegexNameFilter |
Filter to check that packet name matches the specified regular expression. More... | |
class | RelationNameFilter |
Check that name is in relation to the packet name. More... | |
class | Rule |
class | ValidationPolicyConfig |
A validator that can be set up via a configuration file. More... | |
Typedefs | |
typedef boost::property_tree::ptree | ConfigSection |
Enumerations | |
enum | NameRelation { NameRelation::EQUAL, NameRelation::IS_PREFIX_OF, NameRelation::IS_STRICT_PREFIX_OF } |
Functions | |
static tlv::SignatureTypeValue | parseSigType (const std::string &value) |
std::ostream & | operator<< (std::ostream &os, NameRelation relation) |
bool | checkNameRelation (NameRelation relation, const Name &name1, const Name &name2) |
check whether name1 and name2 satisfies relation More... | |
NameRelation | getNameRelationFromString (const std::string &relationString) |
convert relationString to NameRelation More... | |
typedef boost::property_tree::ptree ndn::security::v2::validator_config::ConfigSection |
Definition at line 36 of file common.hpp.
Enumerator | |
---|---|
EQUAL | |
IS_PREFIX_OF | |
IS_STRICT_PREFIX_OF |
Definition at line 33 of file name-relation.hpp.
|
static |
Definition at line 204 of file checker.cpp.
References ndn::tlv::DigestSha256, getNameRelationFromString(), IS_PREFIX_OF, ns3::ndn::Name, NDN_THROW, NDN_THROW_NESTED, ndn::tlv::SignatureSha256WithEcdsa, and ndn::tlv::SignatureSha256WithRsa.
std::ostream & ndn::security::v2::validator_config::operator<< | ( | std::ostream & | os, |
NameRelation | relation | ||
) |
Definition at line 32 of file name-relation.cpp.
References EQUAL, IS_PREFIX_OF, and IS_STRICT_PREFIX_OF.
bool ndn::security::v2::validator_config::checkNameRelation | ( | NameRelation | relation, |
const Name & | name1, | ||
const Name & | name2 | ||
) |
check whether name1
and name2
satisfies relation
Definition at line 46 of file name-relation.cpp.
References EQUAL, IS_PREFIX_OF, IS_STRICT_PREFIX_OF, ndn::Name::isPrefixOf(), and ndn::Name::size().
Referenced by ndn::security::v2::validator_config::NameRelationChecker::checkNames(), ndn::security::v2::validator_config::HyperRelationChecker::checkNames(), and ndn::security::v2::validator_config::RelationNameFilter::RelationNameFilter().
NameRelation ndn::security::v2::validator_config::getNameRelationFromString | ( | const std::string & | relationString | ) |
convert relationString
to NameRelation
Error | if relationString cannot be converted |
Definition at line 60 of file name-relation.cpp.
References EQUAL, IS_PREFIX_OF, IS_STRICT_PREFIX_OF, and NDN_THROW.
Referenced by ndn::security::v2::validator_config::Filter::create(), and parseSigType().