Module jsonwebtoken::jwk

source ·
Expand description

This crate contains types only for working JWK and JWK Sets This is only meant to be used to deal with public JWK, not generate ones. Most of the code in this file is taken from https://github.com/lawliet89/biscuit but tweaked to remove the private bits as it’s not the goal for this crate currently.

Structs§

Enums§

  • Algorithm specific parameters
  • Type of cryptographic curve used by a key. This is defined in RFC 7518 #7.6
  • Key type value for an Elliptic Curve Key. This single value enum is a workaround for Rust not supporting associated constants.
  • The algorithms of the keys
  • Operations that the key is intended to be used for. This enum is serialized untagged
  • Key type value for an Octet Key Pair. This single value enum is a workaround for Rust not supporting associated constants.
  • Key type value for an Octet symmetric key. This single value enum is a workaround for Rust not supporting associated constants.
  • The intended usage of the public KeyType. This enum is serialized untagged
  • Key type value for an RSA Key. This single value enum is a workaround for Rust not supporting associated constants.