Trait jwt::token::verified::VerifyWithStore

source ·
pub trait VerifyWithStore<T> {
    // Required method
    fn verify_with_store<S, A>(self, store: &S) -> Result<T, Error>
       where S: Store<Algorithm = A>,
             A: VerifyingAlgorithm;
}
Expand description

Allow objects to be verified with a store.

Required Methods§

source

fn verify_with_store<S, A>(self, store: &S) -> Result<T, Error>
where S: Store<Algorithm = A>, A: VerifyingAlgorithm,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, C: FromBase64> VerifyWithStore<C> for &'a str

source§

fn verify_with_store<S, A>(self, store: &S) -> Result<C, Error>
where S: Store<Algorithm = A>, A: VerifyingAlgorithm,

source§

impl<'a, H, C> VerifyWithStore<Token<H, C, Verified>> for &'a str

source§

fn verify_with_store<S, A>( self, store: &S, ) -> Result<Token<H, C, Verified>, Error>
where S: Store<Algorithm = A>, A: VerifyingAlgorithm,

Implementors§

source§

impl<'a, H: JoseHeader, C> VerifyWithStore<Token<H, C, Verified>> for Token<H, C, Unverified<'a>>