Class PDFADocumentValidator
java.lang.Object
eu.europa.esig.dss.validation.SignedDocumentValidator
eu.europa.esig.dss.pades.validation.PDFDocumentValidator
eu.europa.esig.dss.pdfa.validation.PDFADocumentValidator
- All Implemented Interfaces:
DocumentValidator
,ProcessExecutorProvider<DocumentProcessExecutor>
Validator used for PDF/A document validation
-
Field Summary
Fields inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
certificateVerifier, containerContents, detachedContents, document, manifestFile, processExecutor, signatureScopeFinder, signingCertificateSource, skipValidationContextExecution
-
Constructor Summary
ModifierConstructorDescriptionprotected
Empty constructorPDFADocumentValidator
(DSSDocument document) The default constructor for PDFADocumentValidator. -
Method Summary
Modifier and TypeMethodDescriptionprotected DiagnosticDataBuilder
createDiagnosticDataBuilder
(ValidationContext validationContext, List<AdvancedSignature> signatures) Creates and fills theDiagnosticDataBuilder
with a relevant dataThis method returns adocument
validation result against PDF/A specificationprotected PAdESWithPDFADiagnosticDataBuilder
Initializes a relevantDiagnosticDataBuilder
for the given implementationvoid
setPdfaStructureValidator
(PDFAStructureValidator pdfaStructureValidator) SetsPDFAStructureValidator
to verify a PDF/A document structureMethods inherited from class eu.europa.esig.dss.pades.validation.PDFDocumentValidator
buildDetachedTimestamps, buildSignatures, findSignatureScopes, getAllSignatures, getDetachedTimestamps, getDssDictionaries, getDssRevisions, getOriginalDocuments, getPAdESTimestampScopeFinder, getRevisions, getValidationData, instantiateValidationDataContainer, isSupported, postProcessing, prepareDssDictionaryValidationContext, prepareValidationContext, setPasswordProtection, setPasswordProtection, setPdfObjFactory, timestampPostProcessing
Methods inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
addReference, appendCounterSignatures, assertConfigurationValid, findTimestampScopes, fromDocument, getDefaultDigestAlgorithm, getDefaultProcessExecutor, getDiagnosticData, getOriginalDocuments, getSignatureById, getSignaturePolicyProvider, getSignaturePolicyValidatorLoader, getSignatures, getTimestampedReferences, getTimestampScopeFinder, getTokenIdentifierProvider, getValidationData, getValidationTime, prepareDetachedTimestampValidationContext, prepareDiagnosticDataBuilder, prepareSignatureForVerification, prepareSignatureScopeFinder, prepareSignatureValidationContext, prepareTimestampScopeFinder, processSignaturesValidation, processValidationPolicy, provideProcessExecutorInstance, setCertificateVerifier, setContainerContents, setDetachedContents, setEnableEtsiValidationReport, setIncludeSemantics, setLocale, setManifestFile, setProcessExecutor, setSignaturePolicyProvider, setSigningCertificateSource, setSkipValidationContextExecution, setTokenExtractionStrategy, setTokenIdentifierProvider, setValidationLevel, setValidationTime, validateContext, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument
-
Constructor Details
-
PDFADocumentValidator
protected PDFADocumentValidator()Empty constructor -
PDFADocumentValidator
The default constructor for PDFADocumentValidator.- Parameters:
document
-DSSDocument
-
-
Method Details
-
setPdfaStructureValidator
SetsPDFAStructureValidator
to verify a PDF/A document structure- Parameters:
pdfaStructureValidator
-PDFAStructureValidator
-
createDiagnosticDataBuilder
protected DiagnosticDataBuilder createDiagnosticDataBuilder(ValidationContext validationContext, List<AdvancedSignature> signatures) Description copied from class:SignedDocumentValidator
Creates and fills theDiagnosticDataBuilder
with a relevant data- Overrides:
createDiagnosticDataBuilder
in classSignedDocumentValidator
- Parameters:
validationContext
-ValidationContext
used for the validationsignatures
- a list ofAdvancedSignature
s to be validated collection- Returns:
- filled
DiagnosticDataBuilder
-
initializeDiagnosticDataBuilder
Description copied from class:SignedDocumentValidator
Initializes a relevantDiagnosticDataBuilder
for the given implementation- Overrides:
initializeDiagnosticDataBuilder
in classPDFDocumentValidator
- Returns:
SignedDocumentDiagnosticDataBuilder
-
getPdfValidationResult
This method returns adocument
validation result against PDF/A specification- Returns:
PDFAValidationResult
-