sign With CAd ESSignature
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
signer Options
SignerOptions contains various configurations needed for the signing.
unsigned Data
hash Algorithm
HashAlgorithm used for the signature