Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AdesParameters(val signatureFormat: SignatureFormat? = null, val conformanceLevel: ConformanceLevel? = null, val signedEnvelopeProperty: SignedEnvelopeProperty? = null, val signedProps: List<Attribute>? = null, val referenceUri: String? = null)

CSC Data Model 1.0.0 section 7.1.

Link copied to clipboard
@Serializable
data class Attribute(val attributeName: AttributeName, val attributeValue: String? = null)

CSC Data Model 1.0.0 section 7.2.

Link copied to clipboard
@Serializable
enum AttributeName : Enum<AttributeName>

CSC attribute names supported by this implementation. Unsupported attributes are rejected.

Link copied to clipboard
@Serializable
enum ConformanceLevel : Enum<ConformanceLevel>

CSC Data Model 1.0.0: The required signature conformance level

Link copied to clipboard
@Serializable
data class Hash(val value: ByteArray, val algorithmOid: ObjectIdentifier)

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"}.

Link copied to clipboard
@Serializable
enum SignatureFormat : Enum<SignatureFormat>

CSC Data Model 1.0.0 Signature formats

Link copied to clipboard

Identifies the kind of signature to create, as defined by CSC Data Model 1.0.0 section 7.5. (subset)

Link copied to clipboard

All available signed envelope properties and their associated SignatureFormats TODO use viableSignatureFormats in input validation

Link copied to clipboard
@Serializable
data class SigningAlgorithm(val signAlgo: ObjectIdentifier, val signAlgoParams: Asn1Element? = null)

Cryptographic signing algorithm parameters from CSC Data Model 1.0.0 section 7.6.