Module jaws::jose

source ·
Expand description

JOSE Header implementation (RFC 7515)

The header format for JOSE, a JSON object with both registered and custom fields.

This implementation tries to ensure that your fields are consistent, so e.g. it does not allow you to set the algorithm (“alg”) header unless you are actually singing the key.

Structs

  • Stub type to represent an X.509 certificate
  • The JOSE Header is a JSON object that represents the cryptographic operations applied to the JWS Protected Header and the JWS Payload and optionally additional properties of the JWS.
  • Access to the header fields of a JOSE header.
  • Mutable access to header fields of a JOSE header.
  • The registered fields of a JOSE header, which are interdependent with the signing key, rendered into their typed form.
  • The registered fields of a JOSE header, which are interdependent with the signing key.
  • A builder for the registered JOSE header fields for using JWTs.

Enums

  • A builder for the registered JOSE header fields for using JWTs, when those fields are derived from the signing key.
  • Error when constructing a JOSE header.

Traits

  • The state of a JOSE header with respect to its signature.