Companion

Functions

Link copied to clipboard
inline fun deserialize(input: String): KmmResult<JwsSigned<ByteArray>>

Deserializes the input, expected to contain a valid JWS (three Base64-URL strings joined by .), into a JwsSigned with ByteArray as the type of the payload.

inline fun <P : Any> deserialize(it: String, json: Json = Json): KmmResult<JwsSigned<P>>

Deserializes the input, expected to contain a valid JWS (three Base64-URL strings joined by .), into a JwsSigned with P as the type of the payload.

Link copied to clipboard
inline fun <T : Any> prepareJwsSignatureInput(header: JwsHeader, payload: T, serializer: SerializationStrategy<T>, json: Json = Json): ByteArray

Called by JWS signing implementations to get the string that will be used as the input for signature calculation