Hash

@Serializable
data class Hash(val value: ByteArray, val algorithmOid: ObjectIdentifier)(source)

CSC Data Model 1.0.0 section 7.4: REQUIRED Structured hash containing a Base64-encoded digest and its algorithm OID. Its JSON form is an object, for example {"value":"BwgJ","algorithmOID":"2.16.840.1.101.3.4.2.1"}.

CSC Data Model Bindings 1.0.0 specifies SRI strings for its QES request checksum fields. ETSI TS 119 432 Annex A.6.4 specifies this structured object. VC-K follows the TS 119 432 representation wherever the definitions conflict and uses Hash for checksum models and serialized output throughout the project.

Constructors

Link copied to clipboard
constructor(value: ByteArray, algorithmOid: ObjectIdentifier)

Properties

Link copied to clipboard
@SerialName(value = "algorithmOID")
@Serializable(with = ObjectIdentifierStringSerializer::class)
val algorithmOid: ObjectIdentifier

CSC Data Model 1.0.0 section 7.4: REQUIRED Object identifier of the digest algorithm.

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

CSC Data Model 1.0.0 section 7.4: REQUIRED Digest value, encoded as Base64.

Functions

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