33 if (!state->getOutcome()) {
39 continueValidation(make_shared<CertificateRequest>(klName), state);
44 state->fail({ValidationError::Code::INVALID_KEY_LOCATOR, e.what()});
48 state->fail({ValidationError::Code::INVALID_KEY_LOCATOR,
"Data signing policy violation for " +
57 if (!state->getOutcome()) {
63 continueValidation(make_shared<CertificateRequest>(klName), state);
68 state->fail({ValidationError::Code::INVALID_KEY_LOCATOR, e.what()});
72 state->fail({ValidationError::Code::INVALID_KEY_LOCATOR,
"Interest signing policy violation for " +
Represents a Data packet.
const Name & getName() const noexcept
Get name.
Represents an Interest packet.
const Name & getName() const noexcept
Represents an absolute name.
void toUri(std::ostream &os, name::UriFormat format=name::UriFormat::DEFAULT) const
Write URI representation of the name to the output stream.
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
Name getKeyLocatorName(const Data &data, ValidationState &state)
extract KeyLocator.Name from a Data packet
Name extractIdentityNameFromKeyLocator(const Name &keyLocator)
Extract identity name from key, version-less certificate, or certificate name.