fromJwt
suspend fun fromJwt(jwt: String, publicKey: EcPublicKey? = null, checks: Map<WebTokenCheck, String> = mapOf()): StatusList
Parses and validates JWT that holds the status list.
JWT signature can be validated either by passing WebTokenCheck.TRUST key in the checks map or using non-null publicKey (see validateJwt).
Return
parsed StatusList
Parameters
jwt
status list JWT representation
publicKey
public key of the issuance server signing key (optional)
checks
additional checks for JWT validation
Throws
when jwt cannot be parsed as JWT status list
when JWT validation fails