IdentifierList

class IdentifierList(identifiers: Set<ByteString>, val creationTime: Instant = Clock.System.now(), val expirationTime: Instant = creationTime + 20.minutes)

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

Documents with identifiers in the identifiers set are considered invalid/revoked. Document identifier for the purposes of revocation is stored RevocationStatus.IdentifierList.id in org.multipaz.mdoc.mso.MobileSecurityObject.revocationStatus.

Parameters

identifiers

set of identifiers of revoked document

creationTime

time when this object was created

expirationTime

time when this object expires and should be refreshed

Constructors

Link copied to clipboard
constructor(identifiers: Set<ByteString>, creationTime: Instant = Clock.System.now(), expirationTime: Instant = creationTime + 20.minutes)

Types

Link copied to clipboard
class Builder

Builder class for IdentifierList.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun contains(identifier: ByteString): Boolean
fun contains(identifier: Bstr): Boolean

Checks if this identifier list contains the given identifier

Link copied to clipboard
suspend fun serializeAsCwt(key: AsymmetricKey, subject: String): ByteArray

Serializes this list as CWT.