pub trait SigningKeyManager: AttenuationKeyGenerator<Self::PublicAttenuationKey, Self::PrivateAttenuationKey> + Clone {
    type JWK: Serialize;
    type PublicAttenuationKey: PublicKey;
    type PrivateAttenuationKey: PrivateKey;
    type PrivateRootKey: PrivateKey;
    type Claims: Serialize;

    fn jwk_for_public_attenuation_key(
        public_attenuation_key: &Self::PublicAttenuationKey
    ) -> Self::JWK; }
Expand description

Trait handling signing and key generation for crate::sign::AttenuableJWT.

Required Associated Types

Type of the JWK for the Self::PublicAttenuationKey.

Type of the public key for the attenuation keys.

Type of the private key for the attenuation keys.

Type of the private key for the root JWT.

Type to represent the claims of the JWT. Any type that serializes to a map is suitable.

Required Methods

Return a JWK representing the provided public attenuation key.

Implementors