embedSignature

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

This function is used to embed a PKCS#1 signature in the document. Results can be extracted by com.pspdfkit.utils.Response.onSuccessEmpty or com.pspdfkit.utils.Response.onError

Return

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

Parameters

context

Context of the application

signerOptions

SignerOptions contains various configurations needed for the signing.

signedData
unsignedData
hashAlgorithm

HashAlgorithm used for the signature