Class DefaultEvidenceRecordValidator
java.lang.Object
eu.europa.esig.dss.validation.SignedDocumentValidator
eu.europa.esig.dss.evidencerecord.common.validation.DefaultEvidenceRecordValidator
- All Implemented Interfaces:
DocumentValidator
,EvidenceRecordValidator
,ProcessExecutorProvider<DocumentProcessExecutor>
- Direct Known Subclasses:
ASN1EvidenceRecordValidator
,XMLEvidenceRecordValidator
public abstract class DefaultEvidenceRecordValidator
extends SignedDocumentValidator
implements EvidenceRecordValidator
This class is used to perform a validation of an evidence record document
In order to perform validation-process, please ensure the `dss-validation` module is loaded within the dependencies list of your project.
-
Field Summary
Fields inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
documentAnalyzer, processExecutor
-
Constructor Summary
ModifierConstructorDescriptionprotected
DefaultEvidenceRecordValidator
(DefaultEvidenceRecordAnalyzer evidenceRecordAnalyzer) Empty constructor -
Method Summary
Modifier and TypeMethodDescriptionfromDocument
(DSSDocument dssDocument) This method guesses the document format and returns an appropriate evidence record validator.Returns the current instance ofDocumentAnalyzer
Returns a single EvidenceRecord to be validatedThis method returns a type of the evidence record supported by the current validatorgetOriginalDocuments
(AdvancedSignature advancedSignature) This method returns the signed document(s) without their signature(s)Methods inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
assertConfigurationValid, getDefaultProcessExecutor, getDetachedEvidenceRecords, getDetachedTimestamps, getDiagnosticData, getOriginalDocuments, getSignatureById, getSignaturePolicyValidatorLoader, getSignatures, getValidationData, getValidationData, initializeDiagnosticDataBuilder, isSupported, processValidationPolicy, provideProcessExecutorInstance, setCertificateVerifier, setContainerContents, setDefaultDigestAlgorithm, setDetachedContents, setDetachedEvidenceRecordDocuments, setEnableEtsiValidationReport, setIncludeSemantics, setLocale, setManifestFile, setProcessExecutor, setSignaturePolicyProvider, setSigningCertificateSource, setSkipValidationContextExecution, setTokenExtractionStrategy, setTokenIdentifierProvider, setValidationContextExecutor, setValidationLevel, setValidationTime, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.europa.esig.dss.validation.DocumentValidator
getDetachedEvidenceRecords, getDetachedTimestamps, getOriginalDocuments, getSignatures, getValidationData, getValidationData, setCertificateVerifier, setContainerContents, setDefaultDigestAlgorithm, setDetachedContents, setDetachedEvidenceRecordDocuments, setEnableEtsiValidationReport, setIncludeSemantics, setManifestFile, setSignaturePolicyProvider, setSigningCertificateSource, setTokenExtractionStrategy, setTokenIdentifierProvider, setValidationContextExecutor, setValidationLevel, setValidationTime, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument
Methods inherited from interface eu.europa.esig.dss.validation.executor.ProcessExecutorProvider
getDefaultProcessExecutor, setProcessExecutor
-
Constructor Details
-
DefaultEvidenceRecordValidator
Empty constructor- Parameters:
evidenceRecordAnalyzer
-DefaultEvidenceRecordAnalyzer
-
-
Method Details
-
getDocumentAnalyzer
Description copied from class:SignedDocumentValidator
Returns the current instance ofDocumentAnalyzer
- Overrides:
getDocumentAnalyzer
in classSignedDocumentValidator
- Returns:
DocumentAnalyzer
-
fromDocument
This method guesses the document format and returns an appropriate evidence record validator.- Parameters:
dssDocument
- The instance ofDSSDocument
to validate- Returns:
- returns the specific instance of
DefaultEvidenceRecordValidator
in terms of the document type
-
getEvidenceRecord
Description copied from interface:EvidenceRecordValidator
Returns a single EvidenceRecord to be validated- Specified by:
getEvidenceRecord
in interfaceEvidenceRecordValidator
- Returns:
EvidenceRecord
-
getEvidenceRecordType
Description copied from interface:EvidenceRecordValidator
This method returns a type of the evidence record supported by the current validator- Specified by:
getEvidenceRecordType
in interfaceEvidenceRecordValidator
- Returns:
EvidenceRecordTypeEnum
-
getOriginalDocuments
Description copied from interface:DocumentValidator
This method returns the signed document(s) without their signature(s)- Specified by:
getOriginalDocuments
in interfaceDocumentValidator
- Overrides:
getOriginalDocuments
in classSignedDocumentValidator
- Parameters:
advancedSignature
-AdvancedSignature
to find signer documents for- Returns:
- list of
DSSDocument
s
-