Expand description
JWS Compact Serialization implementaton.
This module contains types and functions to encode/decode and sign/verify messages encoded with the JWS Compact Serialization Scheme as defined in RFC 1715 section 7.1.
Most applications should use encode_sign
and decode_verify
.
These functions combine encoding and signing or decoding and verifying in a single step.
Structs§
- Compact
Serialized Parts - The individual (still encoded) parts of a JWS Compact Serialized message.
- Decoded
Message - A compact JWS message with header and payload, but without signature.
- Encoded
Message - An encoded JWS Compact Serialization message without signature.
- Encoded
Signed Message - An encoded JWS Compact Serialization message with signature.
Functions§
- decode⚠
Deprecated - Decode a JWS Compact Serialization message with signature from a byte slice.
- decode_
unverified - Decode a JWS Compact Serialization message with signature from a byte slice.
- decode_
verify - Decode and verify a JWS Compact Serialization message.
- encode
- Encode a message using the JWS Compact Serialization scheme.
- encode_
sign - Encode and sign the message.
- split_
encoded_ parts - Split the parts of a JWS Compact Serialization message.