CscDocumentDigest

@Serializable
data class CscDocumentDigest(val hashes: Hashes, val hashAlgorithmOid: ObjectIdentifier? = null, val signatureFormat: SignatureFormat, val conformanceLevel: ConformanceLevel? = null, val signAlgoOid: ObjectIdentifier, val signAlgoParams: Asn1Element? = null, val signedProps: List<JsonObject>? = null, val signedEnvelopeProperty: SignedEnvelopeProperty? = null)(source)

CSC: Class used as part of SignatureRequestParameters

Constructors

Link copied to clipboard
constructor(hashes: Hashes, hashAlgorithmOid: ObjectIdentifier? = null, signatureFormat: SignatureFormat, conformanceLevel: ConformanceLevel? = null, signAlgoOid: ObjectIdentifier, signAlgoParams: Asn1Element? = null, signedProps: List<JsonObject>? = null, signedEnvelopeProperty: SignedEnvelopeProperty? = null)

Properties

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

Requested conformance level. If omitted its value is "AdES-B-B"

Link copied to clipboard
@Transient
val hashAlgorithm: Digest
Link copied to clipboard
@SerialName(value = "hashAlgorithmOID")
val hashAlgorithmOid: ObjectIdentifier? = null

Hashing algorithm OID used to calculate document(s) hash(es). This parameter MAY be omitted or ignored if the hash algorithm is implicitly specified by the signAlgo algorithm. Only hashing algorithms as strong or stronger than SHA256 SHALL be used

Link copied to clipboard
@SerialName(value = "hashes")
val hashes: Hashes

One or more hash values representing one or more SDRs. This parameter SHALL contain the Base64-encoded hash(es) of the documents to be signed. Does not use hashes serializer as it is defined as array of string instead of string.

Link copied to clipboard
@SerialName(value = "signAlgo")
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 algorithm parameters if required by the signature algorithm - Necessary for RSASSA-PSS for example

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? = null

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 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