Trait jwt::algorithm::VerifyingAlgorithm [−][src]
pub trait VerifyingAlgorithm { fn algorithm_type(&self) -> AlgorithmType; fn verify_bytes(
&self,
header: &str,
claims: &str,
signature: &[u8]
) -> Result<bool, Error>; fn verify(
&self,
header: &str,
claims: &str,
signature: &str
) -> Result<bool, Error> { ... } }
Expand description
An algorithm capable of verifying base64 encoded header and claims strings.
Required methods
fn algorithm_type(&self) -> AlgorithmType
[src]Provided methods
Implementations on Foreign Types
impl<D> VerifyingAlgorithm for Hmac<D> where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone + TypeLevelAlgorithmType,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
[src]
impl<D> VerifyingAlgorithm for Hmac<D> where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone + TypeLevelAlgorithmType,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
[src]