Package com.pdftools.signaturevalidation
Class Validator
java.lang.Object
com.pdftools.internal.NativeBase
com.pdftools.internal.NativeObject
com.pdftools.signaturevalidation.Validator
The class to check the validity of signatures
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassReport the result of a constraint validation ofvalidate(com.pdftools.pdf.Document, com.pdftools.signaturevalidation.profiles.Profile, com.pdftools.signaturevalidation.SignatureSelector).static interfaceListener interface for theValidator.Constraintevent. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a listener for theValidator.Constraintevent.voidRemove registered listener for theValidator.Constraintevent.validate(Document document, Profile profile, SignatureSelector selector) Validate the signatures of a PDF documentMethods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
Constructor Details
-
Validator
public Validator()
-
-
Method Details
-
addConstraintListener
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
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.IllegalArgumentException- ifdocumentisnullIllegalArgumentException- ifprofileisnullIllegalArgumentException- ifselectorisnull
-