[][src]Trait http_signature_normalization_actix::SignatureVerify

pub trait SignatureVerify {
    type Error: ResponseError;
    type Future: IntoFuture<Item = bool, Error = Self::Error>;
    fn signature_verify(
        &mut self,
        algorithm: Option<Algorithm>,
        key_id: &str,
        signature: &str,
        signing_string: &str
    ) -> Self::Future; }

A trait for verifying signatures

Associated Types

type Error: ResponseError

An error produced while attempting to verify the signature. This can be anything implementing ResponseError

type Future: IntoFuture<Item = bool, Error = Self::Error>

The future that resolves to the verification state of the signature

Loading content...

Required methods

fn signature_verify(
    &mut self,
    algorithm: Option<Algorithm>,
    key_id: &str,
    signature: &str,
    signing_string: &str
) -> Self::Future

Given the algorithm, key_id, signature, and signing_string, produce a future that resulves to a the verification status

Loading content...

Implementors

Loading content...