DocumentReference

@Serializable
data class DocumentReference(val label: String? = null, val access: AccessControlMethod? = null, val href: String, val checksum: Hash? = null, val circumstantialData: ByteArray? = null) : SignatureCreationRequestContent, SignatureRequestContent(source)

Remote document reference, CSC Data Model 1.0.0 section 8.3.

Constructors

Link copied to clipboard
constructor(label: String? = null, access: AccessControlMethod? = null, href: String, checksum: Hash? = null, circumstantialData: ByteArray? = null)

Properties

Link copied to clipboard
@SerialName(value = "access")
val access: AccessControlMethod?

CSC Data Model 1.0.0 section 8.3: OPTIONAL Access method for the remote document.

Link copied to clipboard
@SerialName(value = "checksum")
val checksum: Hash?

CSC Data Model 1.0.0 section 8.3: OPTIONAL Integrity checksum for the remote document, represented by the structured Hash object (value is standard Base64 and algorithmOID is a digest OID), 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; VC-K follows the conflicting structured form specified by ETSI TS 119 432 for model and wire representations throughout the project.

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

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

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

CSC Data Model 1.0.0 section 8.3: REQUIRED URI locating the remote document.

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

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

Functions

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