iText 9.0.0 API
|
This class performs signing with PaDES related profiles using provided parameters. More...
Public Member Functions |
|
PdfPadesSigner (PdfReader reader, Stream outputStream) | |
Create an instance of PdfPadesSigner class. More... |
|
virtual void | SignWithBaselineBProfile (SignerProperties signerProperties, IX509Certificate[] chain, IExternalSignature externalSignature) |
Sign the document provided in PdfSigner instance with PaDES Baseline-B Profile. More... |
|
virtual void | SignWithBaselineBProfile (SignerProperties signerProperties, IX509Certificate[] chain, IPrivateKey privateKey) |
Sign the document provided in PdfSigner instance with PaDES Baseline-B Profile. More... |
|
virtual void | SignWithBaselineTProfile (SignerProperties signerProperties, IX509Certificate[] chain, IExternalSignature externalSignature, ITSAClient tsaClient) |
Sign the document provided in PdfSigner instance with PaDES Baseline-T Profile. More... |
|
virtual void | SignWithBaselineTProfile (SignerProperties signerProperties, IX509Certificate[] chain, IPrivateKey privateKey, ITSAClient tsaClient) |
Sign the document provided in PdfSigner instance with PaDES Baseline-T Profile. More... |
|
virtual void | SignWithBaselineLTProfile (SignerProperties signerProperties, IX509Certificate[] chain, IExternalSignature externalSignature, ITSAClient tsaClient) |
Sign the document provided in PdfSigner instance with PaDES Baseline-LT Profile. More... |
|
virtual void | SignWithBaselineLTProfile (SignerProperties signerProperties, IX509Certificate[] chain, IPrivateKey privateKey, ITSAClient tsaClient) |
Sign the document provided in PdfSigner instance with PaDES Baseline-LT Profile. More... |
|
virtual void | SignWithBaselineLTAProfile (SignerProperties signerProperties, IX509Certificate[] chain, IExternalSignature externalSignature, ITSAClient tsaClient) |
Sign the document provided in PdfSigner instance with PaDES Baseline-LTA Profile. More... |
|
virtual void | SignWithBaselineLTAProfile (SignerProperties signerProperties, IX509Certificate[] chain, IPrivateKey privateKey, ITSAClient tsaClient) |
Sign the document provided in PdfSigner instance with PaDES Baseline-LTA Profile. More... |
|
virtual void | ProlongSignatures (ITSAClient tsaClient) |
Add revocation information for all the signatures which could be found in the provided document. More... |
|
virtual void | ProlongSignatures () |
Add revocation information for all the signatures which could be found in the provided document. More... |
|
virtual iText.Signatures.PdfPadesSigner | SetTemporaryDirectoryPath (String temporaryDirectoryPath) |
Set temporary directory to be used for temporary files creation. More... |
|
virtual iText.Signatures.PdfPadesSigner | SetTimestampSignatureName (String timestampSignatureName) |
Set the name to be used for timestamp signature creation. More... |
|
virtual iText.Signatures.PdfPadesSigner | SetStampingProperties (StampingProperties stampingProperties) |
Set stamping properties to be used during main signing operation. More... |
|
virtual iText.Signatures.PdfPadesSigner | SetEstimatedSize (int estimatedSize) |
Set estimated size of a signature to be applied. More... |
|
virtual iText.Signatures.PdfPadesSigner | SetOcspClient (IOcspClient ocspClient) |
Set IOcspClient to be used for LTV Verification. More... |
|
virtual iText.Signatures.PdfPadesSigner | SetCrlClient (ICrlClient crlClient) |
Set ICrlClient to be used for LTV Verification. More... |
|
virtual iText.Signatures.PdfPadesSigner | SetExternalDigest (IExternalDigest externalDigest) |
Set IExternalDigest to be used for main signing operation. More... |
|
virtual iText.Signatures.PdfPadesSigner | SetIssuingCertificateRetriever (IIssuingCertificateRetriever issuingCertificateRetriever) |
Set IIssuingCertificateRetriever to be used before main signing operation. More... |
|
virtual iText.Signatures.PdfPadesSigner | SetTrustedCertificates (IList< IX509Certificate > certificateList) |
Set certificate list to be used by the IIssuingCertificateRetriever to retrieve missing certificates. More... |
|
This class performs signing with PaDES related profiles using provided parameters.
|
inline |
Create an instance of PdfPadesSigner class.
Create an instance of PdfPadesSigner class. One instance shall be used for one signing operation.
reader |
iText.Kernel.Pdf.PdfReader instance to read original PDF file
outputStream |
System.IO.Stream output stream to write the resulting PDF file into
|
inlinevirtual |
Add revocation information for all the signatures which could be found in the provided document.
|
inlinevirtual |
Add revocation information for all the signatures which could be found in the provided document.
Add revocation information for all the signatures which could be found in the provided document. Also add timestamp signature on top of that.
tsaClient |
ITSAClient TSA Client to be used for timestamp signature creation
|
inlinevirtual |
Set ICrlClient to be used for LTV Verification.
Set ICrlClient to be used for LTV Verification.
This setter is only relevant if Baseline-LT Profile level or higher is used.
If none is set, there will be an attempt to create default CRL Client instance using the certificate chain.
crlClient |
ICrlClient instance to be used for LTV Verification
|
inlinevirtual |
Set estimated size of a signature to be applied.
Set estimated size of a signature to be applied.
This parameter represents estimated amount of bytes to be preserved for the signature.
If none is set, 0 will be used and the required space will be calculated during the signing.
estimatedSize | amount of bytes to be used as estimated value |
|
inlinevirtual |
Set IExternalDigest to be used for main signing operation.
Set IExternalDigest to be used for main signing operation.
If none is set, BouncyCastleDigest instance will be used instead.
externalDigest |
IExternalDigest to be used for main signing operation.
|
inlinevirtual |
Set IIssuingCertificateRetriever to be used before main signing operation.
Set IIssuingCertificateRetriever to be used before main signing operation.
If none is set, IssuingCertificateRetriever instance will be used instead.
issuingCertificateRetriever |
IIssuingCertificateRetriever instance to be used for getting missing certificates in chain or CRL response issuer certificates.
|
inlinevirtual |
Set IOcspClient to be used for LTV Verification.
Set IOcspClient to be used for LTV Verification.
This setter is only relevant if Baseline-LT Profile level or higher is used.
If none is set, there will be an attempt to create default OCSP Client instance using the certificate chain.
ocspClient |
IOcspClient instance to be used for LTV Verification
|
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
|
inlinevirtual |
Set temporary directory to be used for temporary files creation.
Set temporary directory to be used for temporary files creation.
If none is set, temporary documents will be created in memory.
temporaryDirectoryPath |
System.String representing relative or absolute path to the directory
|
inlinevirtual |
Set the name to be used for timestamp signature creation.
Set the name to be used for timestamp signature creation.
This setter is only relevant if SignWithBaselineLTAProfile(SignerProperties, iText.Commons.Bouncycastle.Cert.IX509Certificate[], IExternalSignature, ITSAClient) or ProlongSignatures() methods are used.
If none is set, randomly generated signature name will be used.
timestampSignatureName |
System.String representing the name of a timestamp signature to be applied
|
inlinevirtual |
Set certificate list to be used by the IIssuingCertificateRetriever to retrieve missing certificates.
certificateList | certificate list for getting missing certificates in chain or CRL response issuer certificates. |
|
inlinevirtual |
Sign the document provided in PdfSigner instance with PaDES Baseline-B Profile.
signerProperties |
SignerProperties properties to be used for main signing operation
chain | the chain of certificates to be used for signing operation |
externalSignature |
IExternalSignature instance to be used for main signing operation
|
inlinevirtual |
Sign the document provided in PdfSigner instance with PaDES Baseline-B Profile.
signerProperties |
SignerProperties properties to be used for main signing operation
chain | the chain of certificates to be used for signing operation |
privateKey |
iText.Commons.Bouncycastle.Crypto.IPrivateKey instance to be used for main signing operation
|
inlinevirtual |
Sign the document provided in PdfSigner instance with PaDES Baseline-LTA Profile.
signerProperties |
SignerProperties properties to be used for main signing operation
chain | the chain of certificates to be used for signing operation |
externalSignature |
IExternalSignature instance to be used for main signing operation
tsaClient |
ITSAClient instance to be used for timestamp creation
|
inlinevirtual |
Sign the document provided in PdfSigner instance with PaDES Baseline-LTA Profile.
signerProperties |
SignerProperties properties to be used for main signing operation
chain | the chain of certificates to be used for signing operation |
privateKey |
iText.Commons.Bouncycastle.Crypto.IPrivateKey instance to be used for main signing operation
tsaClient |
ITSAClient instance to be used for timestamp creation
|
inlinevirtual |
Sign the document provided in PdfSigner instance with PaDES Baseline-LT Profile.
signerProperties |
SignerProperties properties to be used for main signing operation
chain | the chain of certificates to be used for signing operation |
externalSignature |
IExternalSignature instance to be used for main signing operation
tsaClient |
ITSAClient instance to be used for timestamp creation
|
inlinevirtual |
Sign the document provided in PdfSigner instance with PaDES Baseline-LT Profile.
signerProperties |
SignerProperties properties to be used for main signing operation
chain | the chain of certificates to be used for signing operation |
privateKey |
iText.Commons.Bouncycastle.Crypto.IPrivateKey instance to be used for main signing operation
tsaClient |
ITSAClient instance to be used for timestamp creation
|
inlinevirtual |
Sign the document provided in PdfSigner instance with PaDES Baseline-T Profile.
signerProperties |
SignerProperties properties to be used for main signing operation
chain | the chain of certificates to be used for signing operation |
externalSignature |
IExternalSignature instance to be used for main signing operation
tsaClient |
ITSAClient instance to be used for timestamp creation
|
inlinevirtual |
Sign the document provided in PdfSigner instance with PaDES Baseline-T Profile.
signerProperties |
SignerProperties properties to be used for main signing operation
chain | the chain of certificates to be used for signing operation |
privateKey |
iText.Commons.Bouncycastle.Crypto.IPrivateKey instance to be used for main signing operation
tsaClient |
ITSAClient instance to be used for timestamp creation