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 class
Validator.Constraint
Report the result of a constraint validation ofvalidate(com.pdftools.pdf.Document, com.pdftools.signaturevalidation.profiles.Profile, com.pdftools.signaturevalidation.SignatureSelector)
.static interface
Validator.ConstraintListener
Listener interface for theValidator.Constraint
event.
-
Constructor Summary
Constructors Constructor Description Validator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConstraintListener(Validator.ConstraintListener listener)
Add a listener for theValidator.Constraint
event.void
removeConstraintListener(Validator.ConstraintListener listener)
Remove registered listener for theValidator.Constraint
event.ValidationResults
validate(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.Constraint
event.- Parameters:
listener
- Listener for theValidator.Constraint
event. If a listener is added that is already registered, it is ignored.
-
removeConstraintListener
public void removeConstraintListener(Validator.ConstraintListener listener)
Remove registered listener for theValidator.Constraint
event.- Parameters:
listener
- Listener for theValidator.Constraint
event 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
- ifdocument
isnull
java.lang.IllegalArgumentException
- ifprofile
isnull
java.lang.IllegalArgumentException
- ifselector
isnull
-
-