Module jws

Module jws 

Source
Expand description

JSON Web Signatures data type.

Structs§

Jws
This is a serde-compatible JSON Web Signature structure.

Functions§

decode
Validate a received JWS and decode into the header and claims.
encode
Encode the header and claims given and sign the payload using the algorithm from the header and the key. If the algorithm given is RSA or EC, the key needs to be in the PEM format. This produces a JWS instead of a JWT – usage is similar to encode, see that for more details.