[−][src]Trait jwt::algorithm::VerifyingAlgorithm
An algorithm capable of verifying base64 encoded header and claims strings.
Required methods
pub fn algorithm_type(&self) -> AlgorithmType
[src]
pub fn verify_bytes(
&self,
header: &str,
claims: &str,
signature: &[u8]
) -> Result<bool, Error>
[src]
&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: Update + BlockInput + FixedOutput + Reset + Default + Clone + TypeLevelAlgorithmType,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
[src]
D: Update + BlockInput + FixedOutput + Reset + Default + Clone + TypeLevelAlgorithmType,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
pub fn algorithm_type(&self) -> AlgorithmType
[src]
pub 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]
pub fn algorithm_type(&self) -> AlgorithmType
[src]
pub 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]
pub fn algorithm_type(&self) -> AlgorithmType
[src]
pub fn verify_bytes(
&self,
header: &str,
claims: &str,
signature: &[u8]
) -> Result<bool, Error>
[src]
&self,
header: &str,
claims: &str,
signature: &[u8]
) -> Result<bool, Error>