RevocationStatus

sealed class RevocationStatus

Data that describes how validity/revocation status of a credential can be obtained.

SD-JWT revocation status if present should be RevocationStatus.StatusList, ISO mdoc revocation status if present can be either RevocationStatus.StatusList or RevocationStatus.IdentifierList. Also, if the revocation status cannot be parsed it will be RevocationStatus.Unknown. This simply means that the current version of the library does not know how to parse it, not that the credential is invalid. An application should make its own determination in such cases.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class IdentifierList(val id: ByteString, val uri: String, val certificate: X509Cert?) : RevocationStatus

Identifier list as defined in ISO/IEC 18013-5 Section 12.3.6.4 "Identifier list details".

Link copied to clipboard
data class StatusList(val idx: Int, val uri: String, val certificate: X509Cert?) : RevocationStatus

Status list is a format defined Token Status List draft standard.

Link copied to clipboard
sealed class Unknown : RevocationStatus

Revocation status that is present in the credential, but cannot be parsed by the library.

Link copied to clipboard
data class UnknownCbor(val dataItem: DataItem) : RevocationStatus.Unknown

ISO mdoc revocation status that could not be parsed.

Link copied to clipboard
data class UnknownJson(val json: JsonElement) : RevocationStatus.Unknown

SD-JWT revocation status that cannot be parsed.

Functions

Link copied to clipboard
abstract fun toDataItem(): DataItem

Revocation status expressed as CBOR to use in ISO mdoc credentials.

Link copied to clipboard
abstract fun toJson(): JsonElement

Revocation status expressed as JSON to use in SD-JWT credentials