JwsGeneral
General JSON JWS.
A general JWS carries one payload and one or more SignatureElements. Each SignatureElement contains the header fragments for one signature and exposes its merged effective JwsHeader. All signatures in a JwsGeneral share the same payload.
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 JwsGeneralTyped
Properties
Link copied to clipboard
Link copied to clipboard
Raw payload bytes.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Returns a new JwsGeneral with one additional signature over the same payload.
Link copied to clipboard
Find correct serializer at compile time
fun <P> getPayload(serializer: KSerializer<P>, serialFormat: SerialFormat = joseCompliantSerializer): KmmResult<P>
Link copied to clipboard
Expands general JSON JWS representation into one flattened JWS per signature.