33 if (!state->getOutcome()) {
48 "Data " + data.
getName().toUri() +
" signed by " + klName.
toUri()});
52 continueValidation(make_shared<CertificateRequest>(klName), state);
60 if (!state->getOutcome()) {
64 if (!state->getOutcome()) {
79 "Interest " + interest.
getName().toUri() +
" signed by " + klName.
toUri()});
83 continueValidation(make_shared<CertificateRequest>(klName), state);
Represents a Data packet.
const SignatureInfo & getSignatureInfo() const noexcept
Get the SignatureInfo element.
const Name & getName() const noexcept
Get the data 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.
bool isPrefixOf(const Name &other) const noexcept
Check if this name is a prefix of another name.
@ POLICY_ERROR
The packet violates the validation rules enforced by the policy.
@ INVALID_KEY_LOCATOR
The KeyLocator element is missing or has an invalid format.
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 SignatureInfo &si, ValidationState &state)
Extract the KeyLocator name from a SignatureInfo element.
SignatureInfo getSignatureInfo(const Interest &interest, ValidationState &state)
Extract SignatureInfo from a signed Interest.
Name extractIdentityNameFromKeyLocator(const Name &keyLocator)
Extract identity name from key, version-less certificate, or certificate name.