sign

abstract fun sign(keyAlias: String, signingInput: ByteArray): ByteArray

Signs the provided payload using the private key identified by the provided alias.

Return

The signature in JWS R+S format

Implementations should ensure that the signing process is secured, utilizing secure cryptographic practices and safeguarding the private key during the operation. The specific signing algorithm used may depend on the type and parameters of the stored key.

Parameters

keyAlias

The alias referencing the stored private key.

signingInput

The data to be signed.