embed Signature
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
signer Options
SignerOptions contains various configurations needed for the signing.
signed Data
unsigned Data
hash Algorithm
HashAlgorithm used for the signature