public enum WarningCategory extends java.lang.Enum<WarningCategory>
Signer.WarningListener
.Enum Constant | Description |
---|---|
ADD_VALIDATION_INFORMATION_FAILED |
Error adding validation information to existing signatures of input document as requested by
OutputOptions.getAddValidationInformation() . |
PDF_A_REMOVED |
PDF/A conformance of input file removed due to file encryption (i.e.
|
SIGNED_DOC_ENCRYPTION_UNCHANGED |
When processing signed documents, their encryption parameters (user password, owner password, permissions) cannot be changed.
|
Modifier and Type | Method | Description |
---|---|---|
static WarningCategory |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static WarningCategory[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WarningCategory PDF_A_REMOVED
pdftools.pdf.OutputOptions.getEncryption
is not null
).
Removal of PDF/A conformance is necessary, because encryption is not allowed by the PDF/A standard.public static final WarningCategory SIGNED_DOC_ENCRYPTION_UNCHANGED
When processing signed documents, their encryption parameters (user password, owner password, permissions) cannot be changed.
Therefore, the property pdftools.pdf.OutputOptions.getEncryption
has no effect.
This warning is generated so that the following situations can be detected:
pdftools.pdf.OutputOptions.getEncryption
is null
and the input document is encrypted.
The output document is also encrypted.
pdftools.pdf.OutputOptions.getEncryption
not null
and the input document is encrypted using different encryption parameters.
The output document is also encrypted, preserving the encryption parameters of the input document.
pdftools.pdf.OutputOptions.getEncryption
not null
and the input document is not encrypted.
The output document is not encrypted.
Encryption parameters of signed documents can be changed by removing all existing signatures using the property OutputOptions.getRemoveSignatures()
.
In this case, this warning is not generated.
public static final WarningCategory ADD_VALIDATION_INFORMATION_FAILED
Error adding validation information to existing signatures of input document as requested by
OutputOptions.getAddValidationInformation()
.
The warning's context
contains a description of the affected signature.
Potential causes of this warning are:
Certificates
directory (see pdftools.crypto.providers.builtin.Provider
).
pdftools.Sdk.getProxy
) is correct.
public static WarningCategory[] values()
for (WarningCategory c : WarningCategory.values()) System.out.println(c);
public static WarningCategory valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null