StatusList

class StatusList(val bitsPerItem: Int, statusList: ByteArray)

Status list as defined in OAuth Status List in the uncompressed form.

Conceptually status list is just a compact array of status codes, where each status code can take at most bitsPerItem bits for its representation. Status lists use compression when serialized and thus are relatively compact when most of the status codes are zero.

Use this (uncompressed) form of the list to query credential's status.

Parameters

bitsPerItem

number of bits per status code, must be 1, 2, 4, or 8

statusList

uncompressed status values packed as an array as defined by the spec above

Constructors

Link copied to clipboard
constructor(bitsPerItem: Int, statusList: ByteArray)

Types

Link copied to clipboard
class Builder(val bitsPerItem: Int)

Builder class for StatusList.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Creates compressed form of the status list.

Link copied to clipboard
operator fun get(index: Int): Int

Gets the status of the credential with the given index