[][src]Trait jwt::algorithm::SigningAlgorithm

pub trait SigningAlgorithm {
    fn algorithm_type(&self) -> AlgorithmType;
fn sign(&self, header: &str, claims: &str) -> Result<String, Error>; }

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>

Loading content...

Implementations on Foreign Types

impl<D> SigningAlgorithm for Hmac<D> where
    D: Input + BlockInput + FixedOutput + Reset + Default + Clone + TypeLevelAlgorithmType,
    D::BlockSize: ArrayLength<u8>,
    D::OutputSize: ArrayLength<u8>, 
[src]

Loading content...

Implementors

impl SigningAlgorithm for PKeyWithDigest<Private>[src]

impl<T: AsRef<dyn SigningAlgorithm>> SigningAlgorithm for T[src]

Loading content...