pub trait VerifyingAlgorithm {
// Required methods
fn algorithm_type(&self) -> AlgorithmType;
fn verify_bytes(
&self,
header: &str,
claims: &str,
signature: &[u8],
) -> Result<bool, Error>;
// Provided method
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
fn verify_bytes( &self, header: &str, claims: &str, signature: &[u8], ) -> Result<bool, Error>
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".