[−][src]Trait jwt::algorithm::VerifyingAlgorithm
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>
&self,
header: &str,
claims: &str,
signature: &[u8]
) -> Result<bool, Error>
Provided methods
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]
D: Input + BlockInput + FixedOutput + Reset + Default + Clone + TypeLevelAlgorithmType,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
fn algorithm_type(&self) -> AlgorithmType
[src]
fn verify_bytes(
&self,
header: &str,
claims: &str,
signature: &[u8]
) -> Result<bool, Error>
[src]
&self,
header: &str,
claims: &str,
signature: &[u8]
) -> Result<bool, Error>
Implementors
impl VerifyingAlgorithm for PKeyWithDigest<Public>
[src]
fn algorithm_type(&self) -> AlgorithmType
[src]
fn verify_bytes(
&self,
header: &str,
claims: &str,
signature: &[u8]
) -> Result<bool, Error>
[src]
&self,
header: &str,
claims: &str,
signature: &[u8]
) -> Result<bool, Error>
impl<T: AsRef<dyn VerifyingAlgorithm>> VerifyingAlgorithm for T
[src]
fn algorithm_type(&self) -> AlgorithmType
[src]
fn verify_bytes(
&self,
header: &str,
claims: &str,
signature: &[u8]
) -> Result<bool, Error>
[src]
&self,
header: &str,
claims: &str,
signature: &[u8]
) -> Result<bool, Error>