iText 9.0.0 API
|
Class that prepares document and adds the signature to it while performing signing operation in two steps (see PadesTwoPhaseSigningHelper for more info). More...
Public Member Functions |
|
PdfTwoPhaseSigner (PdfReader reader, Stream outputStream) | |
Creates new PdfTwoPhaseSigner instance. More... |
|
virtual byte[] | PrepareDocumentForSignature (SignerProperties signerProperties, String digestAlgorithm, PdfName filter, PdfName subFilter, int estimatedSize, bool includeDate) |
Prepares document for signing, calculates the document digest to sign and closes the document. More... |
|
virtual iText.Signatures.PdfTwoPhaseSigner | SetExternalDigest (IExternalDigest externalDigest) |
Use the external digest to inject specific digest implementations More... |
|
virtual iText.Signatures.PdfTwoPhaseSigner | SetStampingProperties (StampingProperties stampingProperties) |
Set stamping properties to be used during main signing operation. More... |
|
Static Public Member Functions |
|
static void | AddSignatureToPreparedDocument (PdfDocument document, String fieldName, Stream outs, CMSContainer cmsContainer) |
Adds an existing signature to a PDF where space was already reserved. More... |
|
static void | AddSignatureToPreparedDocument (PdfDocument document, String fieldName, Stream outs, byte[] signedContent) |
Adds an existing signature to a PDF where space was already reserved. More... |
|
Class that prepares document and adds the signature to it while performing signing operation in two steps (see PadesTwoPhaseSigningHelper for more info).
Class that prepares document and adds the signature to it while performing signing operation in two steps (see PadesTwoPhaseSigningHelper for more info).
Firstly, this class allows to prepare the document for signing and calculate the document digest to sign. Secondly, it adds an existing signature to a PDF where space was already reserved.
|
inline |
Creates new PdfTwoPhaseSigner instance.
reader |
iText.Kernel.Pdf.PdfReader instance to read the original PDF file
outputStream |
System.IO.Stream output stream to write the resulting PDF file into
|
inlinestatic |
Adds an existing signature to a PDF where space was already reserved.
document | the original PDF |
fieldName | the field to sign. It must be the last field |
outs | the output PDF |
signedContent | the bytes for the signed data |
|
inlinestatic |
Adds an existing signature to a PDF where space was already reserved.
document | the original PDF |
fieldName | the field to sign. It must be the last field |
outs | the output PDF |
cmsContainer | the finalized CMS container |
|
inlinevirtual |
Prepares document for signing, calculates the document digest to sign and closes the document.
signerProperties |
SignerProperties properties to be used for main signing operation
digestAlgorithm | the algorithm to generate the digest with |
filter | PdfName of the signature handler to use when validating this signature |
subFilter | PdfName that describes the encoding of the signature |
estimatedSize | the estimated size of the signature, this is the size of the space reserved for the Cryptographic Message Container |
includeDate | specifies if the signing date should be set to the signature dictionary |
|
inlinevirtual |
Use the external digest to inject specific digest implementations
externalDigest | the IExternalDigest instance to use to generate Digests |
|
inlinevirtual |
Set stamping properties to be used during main signing operation.
Set stamping properties to be used during main signing operation.
If none is set, stamping properties with append mode enabled will be used
stampingProperties |
iText.Kernel.Pdf.StampingProperties instance to be used during main signing operation