Click or drag to resize

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.PDFSecurity
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public static void CompleteExternalSignature(
	string preparedPdf,
	string signedPdf,
	string signatureName,
	IList<byte[]> certificates,
	SignatureDigest digestAlgorithm,
	byte[] signatureValue
)

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.
Remarks
The 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