pub trait SigningAlgorithm {
// Required methods
fn algorithm_type(&self) -> AlgorithmType;
fn sign(&self, header: &str, claims: &str) -> Result<String, Error>;
}Expand description
An algorithm capable of signing base64 encoded header and claims strings. strings.
Required Methods§
fn algorithm_type(&self) -> AlgorithmType
fn sign(&self, header: &str, claims: &str) -> Result<String, Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".