Class DefaultEvidenceRecordAnalyzer
java.lang.Object
eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
eu.europa.esig.dss.evidencerecord.common.validation.DefaultEvidenceRecordAnalyzer
- All Implemented Interfaces:
DocumentAnalyzer
,EvidenceRecordAnalyzer
- Direct Known Subclasses:
ASN1EvidenceRecordAnalyzer
,XMLEvidenceRecordAnalyzer
public abstract class DefaultEvidenceRecordAnalyzer
extends DefaultDocumentAnalyzer
implements EvidenceRecordAnalyzer
This class contains common method for processing of evidence record documents
-
Field Summary
Fields inherited from class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
certificateVerifier, containerContents, detachedContents, detachedEvidenceRecordDocuments, document, manifestFile, signingCertificateSource
-
Constructor Summary
ModifierConstructorDescriptionprotected
Empty constructorprotected
DefaultEvidenceRecordAnalyzer
(DSSDocument document) Instantiates the class with a document to be validated -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract EvidenceRecord
Builds an evidence record objectstatic EvidenceRecordAnalyzer
fromDocument
(DSSDocument dssDocument) This method guesses the document format and returns an appropriate evidence record reader.Retrieves the detached evidence records found in the documentReturns a single EvidenceRecord to be validatedgetOriginalDocuments
(AdvancedSignature advancedSignature) This method returns the signed document(s) without their signature(s)Methods inherited from class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
addReference, appendCounterSignatures, appendExternalEvidenceRecords, appendExternalEvidenceRecords, buildDetachedEvidenceRecords, buildDetachedTimestamps, buildEvidenceRecord, buildSignatures, coversSignature, createValidationContext, getAllEvidenceRecords, getAllSignatures, getDetachedTimestamps, getDocument, getEvidenceRecord, getEvidenceRecordScopes, getOriginalDocuments, getSignatureById, getSignaturePolicyProvider, getSignaturePolicyValidatorLoader, getSignatures, getTimestampedReferences, getTimestampReaders, getTokenIdentifierProvider, getValidationData, getValidationData, getValidationTime, instantiateValidationDataContainer, isTimestampCoveredByEvidenceRecord, prepareDetachedEvidenceRecordValidationContext, prepareDetachedTimestampValidationContext, prepareSignatureForVerification, prepareSignatureValidationContext, prepareValidationContext, processSignaturesValidation, setCertificateVerifier, setContainerContents, setDetachedContents, setDetachedEvidenceRecordDocuments, setDetachedEvidenceRecords, setManifestFile, setSignaturePolicyProvider, setSigningCertificateSource, setTokenIdentifierProvider, setValidationContextExecutor, setValidationTime, validate, validateContext, validateSignaturePolicy
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.spi.validation.analyzer.DocumentAnalyzer
getDetachedTimestamps, getDocument, getOriginalDocuments, getSignatures, getTokenIdentifierProvider, getValidationData, getValidationData, getValidationTime, isSupported, setCertificateVerifier, setContainerContents, setDetachedContents, setDetachedEvidenceRecordDocuments, setManifestFile, setSignaturePolicyProvider, setSigningCertificateSource, setTokenIdentifierProvider, setValidationContextExecutor, setValidationTime, validate
Methods inherited from interface eu.europa.esig.dss.spi.validation.analyzer.evidencerecord.EvidenceRecordAnalyzer
getEvidenceRecordType
-
Constructor Details
-
DefaultEvidenceRecordAnalyzer
protected DefaultEvidenceRecordAnalyzer()Empty constructor -
DefaultEvidenceRecordAnalyzer
Instantiates the class with a document to be validated- Parameters:
document
-DSSDocument
to be validated
-
-
Method Details
-
fromDocument
This method guesses the document format and returns an appropriate evidence record reader.- Parameters:
dssDocument
- The instance ofDSSDocument
to validate- Returns:
- returns the specific instance of
DefaultEvidenceRecordAnalyzer
in terms of the document type
-
getEvidenceRecord
Description copied from interface:EvidenceRecordAnalyzer
Returns a single EvidenceRecord to be validated- Specified by:
getEvidenceRecord
in interfaceEvidenceRecordAnalyzer
- Returns:
EvidenceRecord
-
buildEvidenceRecord
Builds an evidence record object- Returns:
EvidenceRecord
-
getDetachedEvidenceRecords
Description copied from interface:DocumentAnalyzer
Retrieves the detached evidence records found in the document- Specified by:
getDetachedEvidenceRecords
in interfaceDocumentAnalyzer
- Overrides:
getDetachedEvidenceRecords
in classDefaultDocumentAnalyzer
- Returns:
- a list of Evidence Records for validation purposes
-
getOriginalDocuments
Description copied from interface:DocumentAnalyzer
This method returns the signed document(s) without their signature(s)- Specified by:
getOriginalDocuments
in interfaceDocumentAnalyzer
- Parameters:
advancedSignature
-AdvancedSignature
to find signer documents for- Returns:
- list of
DSSDocument
s
-