Package com.pdftools.signaturevalidation
Class Validator
- java.lang.Object
-
- com.pdftools.internal.NativeBase
-
- com.pdftools.internal.NativeObject
-
- com.pdftools.signaturevalidation.Validator
-
public class Validator extends NativeObject
The class to check the validity of signatures
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classValidator.ConstraintReport the result of a constraint validation ofvalidate(com.pdftools.pdf.Document, com.pdftools.signaturevalidation.profiles.Profile, com.pdftools.signaturevalidation.SignatureSelector).static interfaceValidator.ConstraintListenerListener interface for theValidator.Constraintevent.
-
Constructor Summary
Constructors Constructor Description Validator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConstraintListener(Validator.ConstraintListener listener)Add a listener for theValidator.Constraintevent.voidremoveConstraintListener(Validator.ConstraintListener listener)Remove registered listener for theValidator.Constraintevent.ValidationResultsvalidate(Document document, Profile profile, SignatureSelector selector)Validate the signatures of a PDF document-
Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
addConstraintListener
public void addConstraintListener(Validator.ConstraintListener listener)
Add a listener for theValidator.Constraintevent.- Parameters:
listener- Listener for theValidator.Constraintevent. If a listener is added that is already registered, it is ignored.
-
removeConstraintListener
public void removeConstraintListener(Validator.ConstraintListener listener)
Remove registered listener for theValidator.Constraintevent.- Parameters:
listener- Listener for theValidator.Constraintevent that should be removed. If the listener is not registered, it is ignored.
-
validate
public ValidationResults validate(Document document, Profile profile, SignatureSelector selector) throws LicenseException, ProcessingException
Validate the signatures of a PDF document
- Parameters:
document- The document to check the signatures ofprofile- The validation profileselector- The signatures to validate- Returns:
- The result of the validation
- Throws:
LicenseException- The license check has failed.ProcessingException- The processing has failed.java.lang.IllegalArgumentException- ifdocumentisnulljava.lang.IllegalArgumentException- ifprofileisnulljava.lang.IllegalArgumentException- ifselectorisnull
-
-