[−][src]Struct gotham_middleware_aws_sig_verify::AWSSigV4Verifier
AWSSigV4Verifier implements middleware for Gotham that implements the AWS SigV4 signing protocol.
Verifying the signature requires reading (and thus consuming) the body.
Upon a successful signature verification, the hyper::Body
object in the
state is replaced with a new body that contains all of the bytes read.
Fields
signing_key_kind: SigningKeyKind
signing_key_fn: SigningKeyFn
allowed_mismatch: Option<Duration>
service: String
region: String
Implementations
impl AWSSigV4Verifier
[src]
pub fn new(signing_key_fn: SigningKeyFn, service: &str, region: &str) -> Self
[src]
The new method creates a AWSSigV4Verifier with preferred defaults
for signing_key_kind
(KSigning
) and allowed_mismatch
(5 minutes).
Trait Implementations
impl Clone for AWSSigV4Verifier
[src]
fn clone(&self) -> AWSSigV4Verifier
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Middleware for AWSSigV4Verifier
[src]
fn call<Chain>(self, state: State, chain: Chain) -> Box<HandlerFuture> where
Chain: FnOnce(State) -> Box<HandlerFuture> + Send + 'static,
[src]
Chain: FnOnce(State) -> Box<HandlerFuture> + Send + 'static,
impl NewMiddleware for AWSSigV4Verifier
[src]
type Instance = Self
The type of Middleware
created by the NewMiddleware
.
fn new_middleware(&self) -> Result<Self::Instance>
[src]
Auto Trait Implementations
impl RefUnwindSafe for AWSSigV4Verifier
impl Send for AWSSigV4Verifier
impl Sync for AWSSigV4Verifier
impl Unpin for AWSSigV4Verifier
impl UnwindSafe for AWSSigV4Verifier
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,