JwsFlattened
Flattened JSON JWS serialization.
A flattened JWS carries one payload and one signature. The protected header is stored as encoded bytes in plainProtectedHeader; the optional unprotected header is represented as JwsHeader.Part. The effective jwsHeader is reconstructed by merging both fragments with JwsHeader.fromParts.
Either header fragment may be partial. Only the combination of protected and unprotected parameters must constitute a valid JwsHeader.
plainPayload stores the plain payload bytes. JSON serialization base64url-encodes those bytes for the payload member, so callers should not pre-encode them.
If plainPayload data structure is defined as part of the contact consider JwsFlattenedTyped
Properties
Raw payload bytes.
Functions
Find correct serializer at compile time
Converts flattened JSON serialization to compact serialization.