JsonWebSignature

JSON Web Signature support

Types

Link copied to clipboard
data class JwsInfo(val claimsSet: JsonObject, val type: String?, val x5c: X509CertChain?)

Information about a JSON Web Signature.

Functions

Link copied to clipboard

Get information about a JWS.

Link copied to clipboard
fun sign(key: EcPrivateKey, signatureAlgorithm: Algorithm, claimsSet: JsonObject, type: String?, x5c: X509CertChain?): String

Sign a claims set.

suspend fun sign(secureArea: SecureArea, alias: String, keyUnlockData: KeyUnlockData?, claimsSet: JsonObject, type: String?, x5c: X509CertChain?): String

Sign a claims set using a SecureArea.

Link copied to clipboard
fun verify(jws: String, publicKey: EcPublicKey)

Verify the signature of a JWS.