RustCrypto: JOSE JWK
Pure Rust implementation of the JSON Web Key (JWK) component of the Javascript Object Signing and Encryption (JOSE) specification as described in RFC7517.
A JWK is a way to represent cryptographic keys in JSON, typically public keys. This format contains information about how the key needs to be used so a child node can validate what a parent node sends (e.g. with JWTs) or encrypt messages for the parent node using this key (e.g. with JWEs). This crate provides data structures to interface with this format.
use ;
use ;
let keys = json!;
let jwkset: JwkSet = from_value.unwrap;
let ec_jwk: &Jwk = &jwkset.keys;
let rsa_jwk: &Jwk = &jwkset.keys;
assert!;
assert!;
assert_eq!;
assert_eq!;
assert_eq!;
Minimum Supported Rust Version
This crate requires Rust 1.65 at a minimum.
We may change the MSRV in the future, but it will be accompanied by a minor version bump.
License
Licensed under either of:
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.