DocumentInfo

@Serializable
data class DocumentInfo(val label: String? = null, val hash: ByteArray, val hashType: HashType? = null, val signedProps: List<Attribute>? = null, val circumstantialData: ByteArray? = null)(source)

Document digest and authorization metadata, CSC Data Model 1.0.0 section 8.2.

Constructors

Link copied to clipboard
constructor(label: String? = null, hash: ByteArray, hashType: HashType? = null, signedProps: List<Attribute>? = null, circumstantialData: ByteArray? = null)

Properties

Link copied to clipboard
@SerialName(value = "circumstantialData")
@Serializable(with = ByteArrayBase64Serializer::class)
val circumstantialData: ByteArray?

CSC Data Model 1.0.0 section 8.2: OPTIONAL Application-defined document context.

Link copied to clipboard
@SerialName(value = "hash")
@Serializable(with = ByteArrayBase64Serializer::class)
val hash: ByteArray

CSC Data Model 1.0.0 section 8.2: REQUIRED Document digest, encoded as a standard Base64 string (the decoded digest bytes). For example, bytes 07 08 09 are represented as "BwgJ" in JSON. This is distinct from the structured at.asitplus.csc.datamodel.basic.Hash checksum used by DocumentReference.

Link copied to clipboard
@SerialName(value = "hashType")
val hashType: HashType?

CSC Data Model 1.0.0 section 8.2: OPTIONAL Meaning of the supplied document digest; defaults to dtbsr.

Link copied to clipboard
@SerialName(value = "label")
val label: String?

CSC Data Model 1.0.0 section 8.2: OPTIONAL Human-readable document label.

Link copied to clipboard
@SerialName(value = "signed_props")
val signedProps: List<Attribute>?

CSC Data Model 1.0.0 section 8.2: OPTIONAL Signed document properties.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int