finishSignatureWithCms

public final void finishSignatureWithCms(Document preparedDocument, String outputPath, Array<byte> signatureContainer)

Completes external signing (phase two) with a complete signature container produced by an external signing service.

Parameters

preparedDocument

The prepared document.

outputPath

The path where the signed PDF will be saved.

signatureContainer

The complete, DER-encoded CMS signature container.


public final void finishSignatureWithCms(Document preparedDocument, FileOutputStream output, Array<byte> signatureContainer)

Completes external signing (phase two) with a complete signature container, writing the result to a stream.

Parameters

preparedDocument

The prepared document.

output

The output stream where the signed PDF will be written.

signatureContainer

The complete, DER-encoded CMS signature container.