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
- p256
p256
p256
crate Signer implementation. - ring
ring
ring
crate Signer implementation. - rsa
rsa
rsa
crate Signer implementation.
Traits
- A signature which can be represented by bytes.
- A type which can sign a byte buffer.