Skip to main content

verify_with_policy

Function verify_with_policy 

Source
pub fn verify_with_policy<B, F>(
    req: &Request<B>,
    policy: &VerifyPolicy,
    now: DateTime<Utc>,
    resolve_key: F,
) -> Result<Verified, Error>
where F: FnMut(&str) -> Result<VerifyingKey, Error>,
Expand description

Verifies a signed HTTP request with replay-protection, picking the correct flavour automatically.

This is verify’s policy-aware companion: both VerifyPolicy and a now timestamp are threaded through to the underlying verifier.

§Errors

Propagates every error surface of cavage_verify_with_policy and rfc9421_verify_with_policy.