verify

fun verify(jws: String, publicKey: EcPublicKey)

Verify the signature of a JWS.

Parameters

jws

the compact serialization of the JWS.

publicKey

the key to use for verification

Throws

if verification fails.