public class OutputOptions extends OutputOptions
These options are available for all signature operations of the Signer.
They can also be used without a signature operation with the method Signer.process(com.pdftools.pdf.Document, com.pdftools.sys.Stream).
Notes on document encryption when processing files with the Signer:
Signer.WarningListener with an WarningCategory.PDF_A_REMOVED is generated.
Signer.WarningListener with an WarningCategory.SIGNED_DOC_ENCRYPTION_UNCHANGED is generated.
| Constructor | Description |
|---|---|
OutputOptions() |
| Modifier and Type | Method | Description |
|---|---|---|
AddValidationInformation |
getAddValidationInformation() |
Add validation information to existing signatures of input document (Getter)
|
SignatureRemoval |
getRemoveSignatures() |
Whether to remove any signatures (Getter)
|
void |
setAddValidationInformation(AddValidationInformation value) |
Add validation information to existing signatures of input document (Setter)
|
void |
setRemoveSignatures(SignatureRemoval value) |
Whether to remove any signatures (Setter)
|
equals, hashCodegetClass, notify, notifyAll, toString, wait, wait, waitgetEncryption, setEncryptionpublic SignatureRemoval getRemoveSignatures()
By default, all signatures of the input document are preserved. Optionally, some or all of them can be removed.
Default: SignatureRemoval.NONE
public void setRemoveSignatures(SignatureRemoval value)
By default, all signatures of the input document are preserved. Optionally, some or all of them can be removed.
Default: SignatureRemoval.NONE
java.lang.IllegalArgumentException - if value is nullpublic AddValidationInformation getAddValidationInformation()
Add signature validation information to the document security store (DSS). This information includes:
pdftools.crypto.ValidationInformation.
Validation information for embedded time-stamp tokens is added as well.
If adding validation information fails, an Signer.WarningListener with an
WarningCategory.ADD_VALIDATION_INFORMATION_FAILED is generated.
All types of cryptographic providers support this method. However, this method fails when using a provider whose certificate store is missing a required certificate.
Note: This property has no effect on any new signatures or time-stamp that may also be added. The validation information of signatures and time-stamps is controlled by the respective property in the signature or time-stamp configuration object.
Note: This method does not validate the signatures, but only downloads the information required.
Note: Adding validation information for expired certificates is not possible. Therefore, it is crucial to enlarge the longevity of signatures before they expire.
Note: Adding validation information to document certification (MDP) signatures is not possible, because it would break the signature. Validation information must be added to certification signatures when creating them.
Default: AddValidationInformation.NONE
public void setAddValidationInformation(AddValidationInformation value)
Add signature validation information to the document security store (DSS). This information includes:
pdftools.crypto.ValidationInformation.
Validation information for embedded time-stamp tokens is added as well.
If adding validation information fails, an Signer.WarningListener with an
WarningCategory.ADD_VALIDATION_INFORMATION_FAILED is generated.
All types of cryptographic providers support this method. However, this method fails when using a provider whose certificate store is missing a required certificate.
Note: This property has no effect on any new signatures or time-stamp that may also be added. The validation information of signatures and time-stamps is controlled by the respective property in the signature or time-stamp configuration object.
Note: This method does not validate the signatures, but only downloads the information required.
Note: Adding validation information for expired certificates is not possible. Therefore, it is crucial to enlarge the longevity of signatures before they expire.
Note: Adding validation information to document certification (MDP) signatures is not possible, because it would break the signature. Validation information must be added to certification signatures when creating them.
Default: AddValidationInformation.NONE
java.lang.IllegalArgumentException - if value is null