Scoop API

scoop:scoop.crypto:0.1.0

verifyCompactOrNone

function verifyCompactOrNone

source · line 110
public
public fun verifyCompactOrNone(token: String, algorithm: JwsAlgorithm, key: JwsVerificationKey): VerifiedJws?

Validates compact syntax and the explicitly selected algorithm, then verifies the signature. A signature mismatch returns None; malformed headers or encodings throw JwsException. Application payload claims remain the caller's responsibility.