Function scratchstack_aws_signature::sigv4_verify_at[][src]

pub fn sigv4_verify_at<A1, A2>(
    req: &Request,
    signing_key: &SigningKey,
    server_timestamp: &DateTime<Utc>,
    allowed_mismatch: Option<Duration>,
    region: A1,
    service: A2
) -> Result<(), SignatureError> where
    A1: AsRef<str>,
    A2: AsRef<str>, 

Verify a SigV4 request at a particular point-in-time. This verifies that the request timestamp is not beyond the allowed timestamp mismatch against the specified point-in-time, and that the request signature matches our expected signature.

This is mainly for unit testing. For general purpose use, use sigv4_verify.