fromJson

fun fromJson(json: JsonObject, expirationTime: Instant): CompressedStatusList

Parses JSON as status list.

This method is mostly useful for testing, as JSON is typically wrapped in JWT.

Return

parsed CompressedStatusList

Parameters

json

JSON status list representation

expirationTime

time when this status list expires

Throws

when json does not represent status list