public class Validator extends NativeObject
| Modifier and Type | Class | Description |
|---|---|---|
class |
Validator.Constraint |
Report the result of a constraint validation of
validate(com.pdftools.pdf.Document, com.pdftools.signaturevalidation.profiles.Profile, com.pdftools.signaturevalidation.SignatureSelector). |
static interface |
Validator.ConstraintListener |
Listener interface for the
Validator.Constraint event. |
| Constructor | Description |
|---|---|
Validator() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addConstraintListener(Validator.ConstraintListener listener) |
Add a listener for the
Validator.Constraint event. |
void |
removeConstraintListener(Validator.ConstraintListener listener) |
Remove registered listener for the
Validator.Constraint event. |
ValidationResults |
validate(Document document,
Profile profile,
SignatureSelector selector) |
Validate the signatures of a PDF document
|
equals, hashCodepublic void addConstraintListener(Validator.ConstraintListener listener)
Validator.Constraint event.listener - Listener for the Validator.Constraint event.
If a listener is added that is already registered, it is ignored.public void removeConstraintListener(Validator.ConstraintListener listener)
Validator.Constraint event.listener - Listener for the Validator.Constraint event that should be removed.
If the listener is not registered, it is ignored.public ValidationResults validate(Document document, Profile profile, SignatureSelector selector) throws LicenseException, ProcessingException
document - The document to check the signatures ofprofile - The validation profileselector - The signatures to validateLicenseException - The license check has failed.ProcessingException - The processing has failed.java.lang.IllegalArgumentException - if document is nulljava.lang.IllegalArgumentException - if profile is nulljava.lang.IllegalArgumentException - if selector is null