Trait DynJsonWebAlgorithm

Source
pub trait DynJsonWebAlgorithm {
    // Required method
    fn identifier(&self) -> AlgorithmIdentifier;
}
Expand description

An object-safe trait to associate an alogritm identifier with an algorithm.

This is a dynamic version of JsonWebAlgorithm, which allows for dynamic dispatch of the algorithm, and object-safety for the trait.

This trait does not need to be implemented manually, as it is implemented for any type which implements JsonWebAlgorithm.

Required Methods§

Source

fn identifier(&self) -> AlgorithmIdentifier

The identifier for this algorithm when used in a JWT registered header.

Implementors§