Trait jwt::token::verified::VerifyWithKey [−][src]
pub trait VerifyWithKey<T> { fn verify_with_key(self, key: &impl VerifyingAlgorithm) -> Result<T, Error>; }
Expand description
Allow objects to be verified with a key.
Required methods
fn verify_with_key(self, key: &impl VerifyingAlgorithm) -> Result<T, Error>
[src]Implementations on Foreign Types
impl<'a, H, C> VerifyWithKey<Token<H, C, Verified>> for &'a str where
H: FromBase64 + JoseHeader,
C: FromBase64,
[src]
impl<'a, H, C> VerifyWithKey<Token<H, C, Verified>> for &'a str where
H: FromBase64 + JoseHeader,
C: FromBase64,
[src]fn verify_with_key(
self,
key: &impl VerifyingAlgorithm
) -> Result<Token<H, C, Verified>, Error>
[src]Implementors
impl<'a, H: JoseHeader, C> VerifyWithKey<Token<H, C, Verified>> for Token<H, C, Unverified<'a>>
[src]
impl<'a, H: JoseHeader, C> VerifyWithKey<Token<H, C, Verified>> for Token<H, C, Unverified<'a>>
[src]fn verify_with_key(
self,
key: &impl VerifyingAlgorithm
) -> Result<Token<H, C, Verified>, Error>
[src]