signWithCAdESSignature

suspend fun signWithCAdESSignature(context: Context, signerOptions: SignerOptions, unsignedData: ByteArray, hashAlgorithm: HashAlgorithm): Response<ByteArray>

This function is used to provide a complete PKCS#7 signature in the document with com.pspdfkit.signatures.DigitalSignatureType.CADES digital signature type. Results can be extracted by com.pspdfkit.utils.Response.onSuccess or com.pspdfkit.utils.Response.onError

Return

com.pspdfkit.utils.Response with ByteArray as a result.

Parameters

context

Context of the application

signerOptions

SignerOptions contains various configurations needed for the signing.

unsignedData
hashAlgorithm

HashAlgorithm used for the signature