SigningAlgorithm

@Serializable
data class SigningAlgorithm(val signAlgo: ObjectIdentifier, val signAlgoParams: Asn1Element? = null)(source)

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

Constructors

Link copied to clipboard
constructor(signAlgo: ObjectIdentifier, signAlgoParams: Asn1Element? = null)

Properties

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

CSC Data Model 1.0.0 section 7.6: REQUIRED Signature algorithm object identifier.

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

CSC Data Model 1.0.0 section 7.6: CONDITIONAL Required by some signature algorithms; DER-encoded and Base64-encoded.

Functions

Link copied to clipboard
fun toSignatureAlgorithmOrNull(): SignatureAlgorithm?

Returns the matching Signum algorithm when Signum knows this OID/parameter combination.