Companion

Functions

Link copied to clipboard
operator fun invoke(base64UrlString: String): JwsCompact
suspend operator fun invoke(protectedHeader: JwsHeader, payload: ByteArray, signer: suspend (ByteArray) -> ByteArray): JwsCompact

Build a new at.asitplus.signum.indispensable.josef.JwsCompact from components and immediately sign the correct representation.

Link copied to clipboard
inline fun <P> parse(base64UrlString: String): KmmResult<Pair<JwsCompact, P>>

Build a at.asitplus.signum.indispensable.josef.JwsCompact received as string and immediately resolve the payload