Module jpms_dss_document
Class EvidenceRecordValidator
java.lang.Object
eu.europa.esig.dss.validation.SignedDocumentValidator
eu.europa.esig.dss.validation.evidencerecord.EvidenceRecordValidator
- All Implemented Interfaces:
DocumentValidator,ProcessExecutorProvider<eu.europa.esig.dss.validation.executor.DocumentProcessExecutor>
Abstract class containing the basic logic for an Evidence Record validation,
as well as containing a loader for an Evidence Record validation of the given format.
-
Field Summary
Fields inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
certificateVerifier, containerContents, detachedContents, detachedEvidenceRecordDocuments, document, manifestFile, processExecutor, signingCertificateSource, skipValidationContextExecution -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEmpty constructorprotectedEvidenceRecordValidator(eu.europa.esig.dss.model.DSSDocument document) Instantiates the class with a document to be validated -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract EvidenceRecordBuilds an evidence record objectstatic EvidenceRecordValidatorfromDocument(eu.europa.esig.dss.model.DSSDocument dssDocument) This method guesses the document format and returns an appropriate evidence record validator.Retrieves the detached evidence records found in the documentReturns an evidence record extracted from the documentList<eu.europa.esig.dss.model.DSSDocument> getOriginalDocuments(AdvancedSignature advancedSignature) This method returns the signed document(s) without their signature(s)Methods inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
addReference, appendCounterSignatures, appendExternalEvidenceRecords, assertConfigurationValid, buildDetachedEvidenceRecords, buildDetachedTimestamps, buildEvidenceRecord, buildSignatures, coversSignature, createDiagnosticDataBuilder, createDiagnosticDataBuilder, findSignatureScopes, getAllSignatures, getDefaultDigestAlgorithm, getDefaultProcessExecutor, getDetachedTimestamps, getDiagnosticData, getEvidenceRecord, getEvidenceRecordScopes, getOriginalDocuments, getSignatureById, getSignaturePolicyProvider, getSignaturePolicyValidatorLoader, getSignatures, getTimestampedReferences, getTokenIdentifierProvider, getValidationData, getValidationData, getValidationTime, initializeDiagnosticDataBuilder, instantiateValidationDataContainer, isSupported, prepareDetachedEvidenceRecordValidationContext, prepareDetachedTimestampValidationContext, prepareDiagnosticDataBuilder, prepareSignatureForVerification, prepareSignatureValidationContext, prepareValidationContext, prepareValidationContext, processSignaturesValidation, processValidationPolicy, provideProcessExecutorInstance, setCertificateVerifier, setContainerContents, setDetachedContents, setDetachedEvidenceRecordDocuments, setEnableEtsiValidationReport, setIncludeSemantics, setLocale, setManifestFile, setProcessExecutor, setSignaturePolicyProvider, setSigningCertificateSource, setSkipValidationContextExecution, setTokenExtractionStrategy, setTokenIdentifierProvider, setValidationLevel, setValidationTime, validateContext, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument
-
Constructor Details
-
EvidenceRecordValidator
protected EvidenceRecordValidator()Empty constructor -
EvidenceRecordValidator
protected EvidenceRecordValidator(eu.europa.esig.dss.model.DSSDocument document) Instantiates the class with a document to be validated- Parameters:
document-DSSDocumentto be validated
-
-
Method Details
-
fromDocument
public static EvidenceRecordValidator fromDocument(eu.europa.esig.dss.model.DSSDocument dssDocument) This method guesses the document format and returns an appropriate evidence record validator.- Parameters:
dssDocument- The instance ofDSSDocumentto validate- Returns:
- returns the specific instance of
EvidenceRecordValidatorin terms of the document type
-
getEvidenceRecord
Returns an evidence record extracted from the document- Returns:
EvidenceRecord
-
buildEvidenceRecord
Builds an evidence record object- Returns:
EvidenceRecord
-
getDetachedEvidenceRecords
Description copied from interface:DocumentValidatorRetrieves the detached evidence records found in the document- Specified by:
getDetachedEvidenceRecordsin interfaceDocumentValidator- Overrides:
getDetachedEvidenceRecordsin classSignedDocumentValidator- Returns:
- a list of Evidence Records for validation purposes
-
getOriginalDocuments
public List<eu.europa.esig.dss.model.DSSDocument> getOriginalDocuments(AdvancedSignature advancedSignature) Description copied from interface:DocumentValidatorThis method returns the signed document(s) without their signature(s)- Parameters:
advancedSignature-AdvancedSignatureto find signer documents for- Returns:
- list of
DSSDocuments
-