[][src]Trait jwt::algorithm::VerifyingAlgorithm

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> { ... } }

An algorithm capable of verifying base64 encoded header and claims strings.

Required methods

fn algorithm_type(&self) -> AlgorithmType

fn verify_bytes(
    &self,
    header: &str,
    claims: &str,
    signature: &[u8]
) -> Result<bool, Error>

Loading content...

Provided methods

fn verify(
    &self,
    header: &str,
    claims: &str,
    signature: &str
) -> Result<bool, Error>

Loading content...

Implementations on Foreign Types

impl<D> VerifyingAlgorithm for Hmac<D> where
    D: Input + BlockInput + FixedOutput + Reset + Default + Clone + TypeLevelAlgorithmType,
    D::BlockSize: ArrayLength<u8>,
    D::OutputSize: ArrayLength<u8>, 
[src]

Loading content...

Implementors

impl VerifyingAlgorithm for PKeyWithDigest<Public>[src]

impl<T: AsRef<dyn VerifyingAlgorithm>> VerifyingAlgorithm for T[src]

Loading content...