Module min_jwt::sign

source ·
Expand description

Sign JWTs using various signature algorithms.

The encode_and_sign and serialize_encode_and_sign functions sign JWTs.

Both functions require a Signer which abstracts the implementation and necessary parameters for signing the encoded data. This crate either directly implements the Signer trait on the foreign types or it creates a wrapping type which implements the Signer trait.

Find the implementations on foreign types and implementators listed under the Signer’s documentation to discover what is available.

See the implementation modules for specific examples.

Modules

  • p256p256
    p256 crate Signer implementation.
  • ringring
    ring crate Signer implementation.
  • rsarsa
    rsa crate Signer implementation.

Traits

  • A signature which can be represented by bytes.
  • A type which can sign a byte buffer.