Click or drag to resize
Pdf Library for .NET

PdfSecurityManagerCompleteExternalSignature(String, String, String, IListByte, PdfSignatureDigest, Byte) Method

Writes the signature value into a document prepared with PrepareExternalSignature(IListByte, String) and saves the signed document.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.5
Syntax
public static void CompleteExternalSignature(
	string preparedFileName,
	string outputFileName,
	string signatureName,
	IList<byte[]> certificates,
	PdfSignatureDigest digestAlgorithm,
	byte[] signatureValue
)

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