Class SignatureValidator
java.lang.Object
com.itextpdf.signatures.validation.SignatureValidator
Validator class, which is expected to be used for signatures validation.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
SignatureValidator
(PdfDocument originalDocument, ValidatorChainBuilder builder) Creates new instance ofSignatureValidator
. -
Method Summary
Modifier and TypeMethodDescriptionsetEventCountingMetaInfo
(IMetaInfo metaInfo) Sets theIMetaInfo
that will be used during newPdfDocument
creations.validateSignature
(String signatureName) Validate single signature in the document.Validate all signatures in the document.
-
Field Details
-
VALIDATING_SIGNATURE_NAME
- See Also:
-
-
Constructor Details
-
SignatureValidator
Creates new instance ofSignatureValidator
.- Parameters:
-
originalDocument
-PdfDocument
instance which will be validated -
builder
- seeValidatorChainBuilder
-
-
Method Details
-
setEventCountingMetaInfo
Sets theIMetaInfo
that will be used during newPdfDocument
creations.- Parameters:
-
metaInfo
- meta info to set - Returns:
-
the same
SignatureValidator
instance
-
validateSignatures
Validate all signatures in the document.- Returns:
-
ValidationReport
which contains detailed validation results
-
validateSignature
Validate single signature in the document.- Parameters:
-
signatureName
- name of the signature to validate - Returns:
-
ValidationReport
which contains detailed validation results.
-