[][src]Struct gotham_middleware_aws_sig_verify::AWSSigV4

pub struct AWSSigV4 {}

Re-export aws_sig_verify so users don't have to compute versions. The implementation of the standard AWS SigV4 algorithm.

Implementations

impl AWSSigV4[src]

Re-export aws_sig_verify so users don't have to compute versions.

pub fn new() -> AWSSigV4[src]

pub fn verify(
    &self,
    req: &Request,
    signing_key_kind: SigningKeyKind,
    signing_key_fn: fn(SigningKeyKind, &str, Option<&str>, Option<&str>, Option<&str>, Option<&str>) -> Result<(Principal, Vec<u8>), SignatureError>,
    allowed_mismatch: Option<Duration>
) -> Result<Principal, SignatureError>
[src]

Verify that the request timestamp is not beyond the allowed timestamp mismatch and that the request signature matches our expected signature.

Trait Implementations

impl AWSSigV4Algorithm for AWSSigV4[src]

impl Clone for AWSSigV4[src]

impl Copy for AWSSigV4[src]

impl Debug for AWSSigV4[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.