Trait attenuable_jwt::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;
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.
Required Methods
fn jwk_for_public_attenuation_key(
public_attenuation_key: &Self::PublicAttenuationKey
) -> Self::JWK
fn jwk_for_public_attenuation_key(
public_attenuation_key: &Self::PublicAttenuationKey
) -> Self::JWK
Return a JWK representing the provided public attenuation key.