pub trait ToJwk {
    fn encode_jwk(&self, enc: &mut dyn JwkEncoder) -> Result<(), Error>;

    fn to_jwk_thumbprint(&self, alg: Option<KeyAlg>) -> Result<String, Error> { ... }
    fn to_jwk_public(&self, alg: Option<KeyAlg>) -> Result<String, Error> { ... }
    fn to_jwk_secret(&self, alg: Option<KeyAlg>) -> Result<SecretBytes, Error> { ... }
}
Expand description

Support for converting a key into a JWK

Required Methods

Write the JWK representation to an encoder

Provided Methods

Available on crate feature alloc only.

Create the JWK thumbprint of the key

Available on crate feature alloc only.

Create a JWK of the public key

Available on crate feature alloc only.

Create a JWK of the secret key

Implementors