StatusListTokenPayloadSurrogate

@Serializable
data class StatusListTokenPayloadSurrogate(val subject: UniformResourceIdentifier, val issuedAt: Instant, val expirationTime: Instant? = null, val timeToLive: PositiveDuration? = null, val statusList: StatusList? = null, val identifierList: IdentifierList? = null)(source)

Helper class necessary to correctly map Cbor-labels for statusList and identifierList without having to write the entire serializer manually

For correct cbor-serialization requires Cbor to use CborConfiguration.preferCborLabelsOverNames This is standard for Cbor.CoseCompliant serializers such as coseCompliantSerializer

Constructors

Link copied to clipboard
constructor(subject: UniformResourceIdentifier, issuedAt: Instant, expirationTime: Instant? = null, timeToLive: PositiveDuration? = null, statusList: StatusList? = null, identifierList: IdentifierList? = null)
constructor(statusListTokenPayload: StatusListTokenPayload)

Types

Link copied to clipboard
data object CborLabels
Link copied to clipboard
data object SerialNames

Properties

Link copied to clipboard
@SerialName(value = "exp")
@Serializable(with = InstantLongSerializer::class)
val expirationTime: Instant?
Link copied to clipboard
@SerialName(value = "identifier_list")
val identifierList: IdentifierList?

specification: ISO18013-5 Conforming to the rules defined in 12.3.6 REQUIRED*. MUST NOT be present if statusList is present

Link copied to clipboard
@SerialName(value = "iat")
@Serializable(with = InstantLongSerializer::class)
val issuedAt: Instant
Link copied to clipboard
@SerialName(value = "status_list")
val statusList: StatusList?

specification: https://www.ietf.org/archive/id/draft-ietf-oauth-status-list-05.html

Link copied to clipboard
@SerialName(value = "sub")
val subject: UniformResourceIdentifier
Link copied to clipboard
@SerialName(value = "ttl")
val timeToLive: PositiveDuration?

JSON: JsonNumber CBOR: Unsigned integer (Major Type 0)