Trait jaws::algorithms::JoseAlgorithm
source · pub trait JoseAlgorithm {
type Signature: SignatureEncoding;
const IDENTIFIER: AlgorithmIdentifier;
}Expand description
A trait to associate an alogritm identifier with an algorithm.
Algorithm identifiers are used in JWS and JWE to indicate how a token is signed or encrypted. They are set in the crate::jose::Header automatically when signing the JWT.
Required Associated Types§
sourcetype Signature: SignatureEncoding
type Signature: SignatureEncoding
The type of the signature, which must support encoding.
Required Associated Constants§
sourceconst IDENTIFIER: AlgorithmIdentifier
const IDENTIFIER: AlgorithmIdentifier
The identifier for this algorithm when used in a JWT registered header.
This is the alg field in the JOSE header.
Object Safety§
This trait is not object safe.