invoke

operator fun invoke(base64UrlString: String): JwsCompact(source)

Build a at.asitplus.signum.indispensable.josef.JwsCompact received as string


suspend operator fun invoke(protectedHeader: JwsHeader, payload: ByteArray, signer: suspend (ByteArray) -> ByteArray): JwsCompact(source)

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

payload must be the plain payload bytes. Do not base64url-encode it before calling this overload; compact serialization and signing input construction apply base64url encoding internally.