PdfSecurityManagerCompleteExternalSignature(String, String, String, IListByte, SignatureDigest, Byte) Method |
Writes the signature value into a document prepared with PrepareExternalSignature and saves the signed
document.
Namespace: ExpertPdf.Anywhere.PDFSecurityAssembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntaxpublic static void CompleteExternalSignature(
string preparedPdf,
string signedPdf,
string signatureName,
IList<byte[]> certificates,
SignatureDigest digestAlgorithm,
byte[] signatureValue
)
Public Shared Sub CompleteExternalSignature (
preparedPdf As String,
signedPdf As String,
signatureName As String,
certificates As IList(Of Byte()),
digestAlgorithm As SignatureDigest,
signatureValue As Byte()
)
Parameters
- preparedPdf String
- The full path of the prepared document.
- signedPdf String
- The full path of the signed document. It can be the same as
preparedPdf.
- signatureName String
- The name the signature was prepared with.
- certificates IListByte
- The certificates the signature was prepared with.
- digestAlgorithm SignatureDigest
- The hash algorithm the signature was prepared with.
- signatureValue Byte
- The signature value over the prepared request's data: for an RSA key a PKCS#1 v1.5
signature, for an ECDSA key the DER-encoded signature or r and s concatenated.
RemarksThe value is checked against the signing certificate before it is written, and the signed document is
validated afterwards; either failing throws a
SecurePdfException and writes nothing.
See Also