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§
Functions§
- from_
str - Deserializes a string into a Json Web Key.
- to_
string - Serializes a JSON Web Key into a JSON string.