Companion

object Companion

Functions

Link copied to clipboard
suspend fun fromCwt(cwt: ByteArray, publicKey: EcPublicKey? = null, checks: Map<WebTokenCheck, String> = mapOf(), atTime: Instant = Clock.System.now(), maxValidity: Duration = 365.days): CompressedStatusList

Parses and validates CWT that holds the status list.

Link copied to clipboard
fun fromDataItem(dataItem: DataItem, expirationTime: Instant): CompressedStatusList

Parses CBOR as status list.

Link copied to clipboard
fun fromJson(json: JsonObject, expirationTime: Instant): CompressedStatusList

Parses JSON as status list.

Link copied to clipboard
suspend fun fromJwt(jwt: String, publicKey: EcPublicKey? = null, checks: Map<WebTokenCheck, String> = mapOf(), atTime: Instant = Clock.System.now(), maxValidity: Duration = 365.days): CompressedStatusList

Parses and validates JWT that holds the status list.