Skip to main content

Crate json_web_key

Crate json_web_key 

Source
Expand description

Parse and convert JSON Web Keys

It uses serde, and provides a basic struct layout to work with JSON Web Keys. See: RFC7517

§Serializing

let jwk_str: String = json_web_key::to_string(&jwk)

§Deserializing

let jwk : JsonWebKey = json_web_key::from_str(&jwk_str)

§Serde support

You can use [JsonWebKey] and [JsonWebKeySet] with any code that already uses serde (for example: axum form and query deserializers).

Modules§

cert
ec
error
jwk
key_operation
prelude
rsa
use_case

Functions§

from_str
Deserializes a string into a Json Web Key.
to_string
Serializes a JSON Web Key into a JSON string.

Type Aliases§

Result