Trait SigningAlgorithm

Source
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§

Source

fn algorithm_type(&self) -> AlgorithmType

Source

fn sign(&self, header: &str, claims: &str) -> Result<String, Error>

Implementations on Foreign Types§

Source§

impl<D> SigningAlgorithm for Hmac<D>

Source§

fn algorithm_type(&self) -> AlgorithmType

Source§

fn sign(&self, header: &str, claims: &str) -> Result<String, Error>

Implementors§