Trait jaws::algorithms::DynJoseAlgorithm
source · pub trait DynJoseAlgorithm {
// Required method
fn identifier(&self) -> AlgorithmIdentifier;
}
Expand description
A trait to associate an alogritm identifier with an algorithm.
This is a dynamic version of JoseAlgorithm
, 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 JoseAlgorithm
.
Required Methods§
sourcefn identifier(&self) -> AlgorithmIdentifier
fn identifier(&self) -> AlgorithmIdentifier
The identifier for this algorithm when used in a JWT registered header.