Document

@Serializable
data class Document(val document: ByteArray, val signatureFormat: SignatureFormat, val conformanceLevel: ConformanceLevel? = ConformanceLevel.ADESBB, val signAlgoOid: ObjectIdentifier, val signAlgoParams: Asn1Element? = null, val signedProps: List<JsonObject>? = null, val signedEnvelopeProperty: SignedEnvelopeProperty? = SignedEnvelopeProperty.defaultProperty(signatureFormat))(source)

CSC-API v2.0.0.2 Part of SignDocRequestParameters

Constructors

Link copied to clipboard
constructor(document: ByteArray, signatureFormat: SignatureFormat, conformanceLevel: ConformanceLevel? = ConformanceLevel.ADESBB, signAlgoOid: ObjectIdentifier, signAlgoParams: Asn1Element? = null, signedProps: List<JsonObject>? = null, signedEnvelopeProperty: SignedEnvelopeProperty? = SignedEnvelopeProperty.defaultProperty(signatureFormat))

Properties

Link copied to clipboard
@SerialName(value = "conformance_level")
val conformanceLevel: ConformanceLevel?

Requested conformance level. If omitted its value is ConformanceLevel.ADESBB

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

base64-encoded document content to be signed

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

The OID of the algorithm to use for signing

Link copied to clipboard
@SerialName(value = "signAlgoParams")
val signAlgoParams: Asn1Element? = null

The Base64-encoded DER-encoded ASN.1 signature parameters

Link copied to clipboard
@Transient
val signAlgorithm: SignatureAlgorithm?
Link copied to clipboard
@SerialName(value = "signature_format")
val signatureFormat: SignatureFormat

Requested Signature Format

Link copied to clipboard
@SerialName(value = "signed_envelope_property")
val signedEnvelopeProperty: SignedEnvelopeProperty?

if omitted/null it is assumed to have value SignedEnvelopeProperty.defaultProperty(signatureFormat)

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

Defined in CSC v2.0.0.2 P. 81 Defines a second way to encode all attributes, none of which are necessary TODO: Not implemented. Will be ignored until use-case arises

Functions

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