33 if (!state->getOutcome()) {
38 continueValidation(make_shared<CertificateRequest>(
Interest(klName)), state);
41 state->fail({ValidationError::Code::INVALID_KEY_LOCATOR,
"Data signing policy violation for " +
51 if (!state->getOutcome()) {
56 continueValidation(make_shared<CertificateRequest>(
Interest(klName)), state);
59 state->fail({ValidationError::Code::INVALID_KEY_LOCATOR,
"Interest signing policy violation for " +
const Name & getName() const
Copyright (c) 2013-2017 Regents of the University of California.
represents an Interest packet
std::string toUri() const
Get URI representation of the name.
void checkPolicy(const Data &data, const shared_ptr< ValidationState > &state, const ValidationContinuation &continueValidation) override
Check data against the policy.
std::function< void(const shared_ptr< CertificateRequest > &certRequest, const shared_ptr< ValidationState > &state)> ValidationContinuation
static Name getKeyLocatorName(const SignatureInfo &si, ValidationState &state)
Represents an absolute name.
bool isPrefixOf(const Name &other) const
Check if this name is a prefix of another name.
const Name & getName() const
Get name.
PartialName getPrefix(ssize_t nComponents) const
Extract a prefix of the name.
Represents a Data packet.