SigningKeyManager

Trait SigningKeyManager 

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

    // Required method
    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§

Source

type JWK: Serialize

Type of the JWK for the Self::PublicAttenuationKey.

Source

type PublicAttenuationKey: PublicKey

Type of the public key for the attenuation keys.

Source

type PrivateAttenuationKey: PrivateKey

Type of the private key for the attenuation keys.

Source

type PrivateRootKey: PrivateKey

Type of the private key for the root JWT.

Source

type Claims: Serialize

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

Required Methods§

Source

fn jwk_for_public_attenuation_key( public_attenuation_key: &Self::PublicAttenuationKey, ) -> Self::JWK

Return a JWK representing the provided public attenuation key.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§