[][src]Trait http_sig::DigestProvider

pub trait DigestProvider: Debug + Sync + 'static {
    fn provide_digest(&self, name: &str) -> Option<Box<dyn HttpDigest>>;
}

The verification process will use this trait to find the appropriate digest algorithm to use when verifying the body of a request.

Unless explicitly overridden, the DefaultDigestProvider will be used

Required methods

fn provide_digest(&self, name: &str) -> Option<Box<dyn HttpDigest>>

Returns a digest algorithm for the given name, or None if the algorithm is not recognised by the provider.

Loading content...

Implementors

impl DigestProvider for DefaultDigestProvider[src]

Loading content...