PatchLevel

@Serializable
data class PatchLevel @JvmOverloads constructor(val year: Int, val month: Int, val maxFuturePatchLevelMonths: Int? = 1)(source)

Represents a Patch level configuration property. Patch levels are defined as year and month.

maxFuturePatchLevelMonths indicates how far in the future a patch level parsed from an attestation record can be for it to still be considered valid. It is specified in months and defaults to 1. This is a sensible default because it is possible that, for example, a July security patch is actually rolled out by the end of June. To ignore patch levels from the future (i.e. to consider all patch levels from the future perfectly valid), set this property to null. For testing purposes, this property may also be set to a negative number. Hence, it is represented as a signed integer.

Constructors

Link copied to clipboard
constructor(yearMonth: YearMonth, maxFuturePatchLevelMonths: Int? = 1)
constructor(year: Int, month: Int, maxFuturePatchLevelMonths: Int? = 1)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val month: Int
Link copied to clipboard
val year: Int