pub fn rfc9421_verify_with_policy<B, F>(
req: &Request<B>,
policy: &VerifyPolicy,
now: DateTime<Utc>,
resolve_key: F,
) -> Result<Rfc9421Verified, Error>Expand description
Verifies an RFC 9421-signed request with replay-protection.
Equivalent to rfc9421_verify except that policy is consulted
for every candidate label to reject stale, future-dated or expired
timestamps against now.
ยงErrors
Same as rfc9421_verify plus Error::TimestampTooOld,
Error::TimestampInFuture, Error::TimestampExpired and
Error::TimestampMissing when the policy is violated.