StatusListTokenPayload

data class StatusListTokenPayload(val subject: UniformResourceIdentifier, val issuedAt: Instant, val expirationTime: Instant? = null, val timeToLive: PositiveDuration? = null, val revocationList: RevocationList)(source)

Common model for status list tokens serialized either as JWT claims or as CWT claims.

Serialization differs by format:

  • JWT uses the textual claim names sub, iat, exp, ttl, and status_list

  • CWT uses the corresponding numeric labels 2, 6, 4, 65534, and 65533

  • ttl is encoded as a JSON number for JWT and as a CBOR unsigned integer for CWT

  • identifier_list is only supported for CWT/CBOR and uses label 65530

For correct CWT serialization Cbor must use CborConfiguration.preferCborLabelsOverNames. This is the default for Cbor.CoseCompliant serializers such as coseCompliantSerializer.

Constructors

Link copied to clipboard
constructor(subject: UniformResourceIdentifier, issuedAt: Instant, expirationTime: Instant? = null, timeToLive: PositiveDuration? = null, revocationList: RevocationList)

Properties

Link copied to clipboard

RECOMMENDED. The expiration timestamp of the status list token.

Link copied to clipboard

REQUIRED. The issued-at timestamp of the status list token.

Link copied to clipboard

REQUIRED. The revocation data carried by the token.

Link copied to clipboard

REQUIRED. The subject claim identifying the URI of the status list token.

Link copied to clipboard

OPTIONAL. Maximum cache lifetime of the token.