 |
PdfSecurityManagerCompleteExternalSignature(String, String, String, IListByte, PdfSignatureDigest, Byte) Method |
Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.5
Syntaxpublic static void CompleteExternalSignature(
string preparedFileName,
string outputFileName,
string signatureName,
IList<byte[]> certificates,
PdfSignatureDigest digestAlgorithm,
byte[] signatureValue
)
Public Shared Sub CompleteExternalSignature (
preparedFileName As String,
outputFileName As String,
signatureName As String,
certificates As IList(Of Byte()),
digestAlgorithm As PdfSignatureDigest,
signatureValue As Byte()
)
Parameters
- preparedFileName String
- The path of the prepared document.
- outputFileName String
- The path of the signed document to write. It can be the same as
preparedFileName.
- signatureName String
- The name the signature was prepared with.
- certificates IListByte
- The certificates the signature was prepared with.
- digestAlgorithm PdfSignatureDigest
- 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.
Remarks
The value is checked against the signing certificate before it is written, and the signed document is
validated afterwards; either failing throws a
PdfDocumentException and writes nothing.
See Also