Module compact

Source
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§

CompactSerializedParts
The individual (still encoded) parts of a JWS Compact Serialized message.
DecodedMessage
A compact JWS message with header and payload, but without signature.
EncodedMessage
An encoded JWS Compact Serialization message without signature.
EncodedSignedMessage
An encoded JWS Compact Serialization message with signature.

Functions§

decodeDeprecated
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.