Module jpms_dss_asic_cades
Class ASiCWithCAdESTimestampAnalyzer
java.lang.Object
eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
eu.europa.esig.dss.validation.timestamp.DetachedTimestampAnalyzer
eu.europa.esig.dss.asic.cades.validation.timestamp.ASiCWithCAdESTimestampAnalyzer
- All Implemented Interfaces:
eu.europa.esig.dss.spi.validation.analyzer.DocumentAnalyzer,eu.europa.esig.dss.spi.validation.analyzer.timestamp.TimestampAnalyzer
public class ASiCWithCAdESTimestampAnalyzer
extends eu.europa.esig.dss.validation.timestamp.DetachedTimestampAnalyzer
The abstract validator for an ASiC with CAdES timestamp
-
Field Summary
Fields inherited from class eu.europa.esig.dss.validation.timestamp.DetachedTimestampAnalyzer
timestampToken, timestampTypeFields inherited from class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
certificateVerifier, containerContents, detachedContents, detachedEvidenceRecordDocuments, document, manifestFile, signingCertificateSource -
Constructor Summary
ConstructorsConstructorDescriptionASiCWithCAdESTimestampAnalyzer(eu.europa.esig.dss.model.DSSDocument timestamp) Default constructorASiCWithCAdESTimestampAnalyzer(eu.europa.esig.dss.model.DSSDocument timestamp, eu.europa.esig.dss.enumerations.TimestampType type) Default constructor with a timestamp type -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddReference(eu.europa.esig.dss.model.scope.SignatureScope signatureScope) protected eu.europa.esig.dss.spi.x509.tsp.TimestampTokeneu.europa.esig.dss.model.ManifestFileReturns the coveredManifestFileprotected List<eu.europa.esig.dss.model.scope.SignatureScope> getTimestampScopes(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampToken) protected booleanisTimestampCoveredByEvidenceRecord(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampToken, eu.europa.esig.dss.spi.x509.evidencerecord.EvidenceRecord evidenceRecord) voidsetArchiveDocuments(List<eu.europa.esig.dss.model.DSSDocument> archiveDocuments) Sets the document embedded inside package.zip, when applicablevoidsetArchiveTimestampType(eu.europa.esig.dss.enumerations.ArchiveTimestampType archiveTimestampType) Sets the archive timestamp typevoidsetOriginalDocuments(List<eu.europa.esig.dss.model.DSSDocument> originalDocuments) Sets the original documents present in the ASiC containerMethods inherited from class eu.europa.esig.dss.validation.timestamp.DetachedTimestampAnalyzer
buildDetachedTimestamps, getOriginalDocuments, getOriginalDocuments, getTimestamp, getTimestampedData, isSupported, setTimestampedDataMethods inherited from class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
appendCounterSignatures, appendExternalEvidenceRecords, appendExternalEvidenceRecords, buildDetachedEvidenceRecords, buildEvidenceRecord, buildSignatures, coversSignature, createValidationContext, fromDocument, getAllEvidenceRecords, getAllSignatures, getDetachedEvidenceRecords, getDetachedTimestamps, getDocument, getEvidenceRecord, getEvidenceRecordScopes, getSignatureById, getSignaturePolicyProvider, getSignaturePolicyValidatorLoader, getSignatures, getTimestampedReferences, getTimestampReaders, getTokenIdentifierProvider, getValidationData, getValidationData, getValidationTime, instantiateValidationDataContainer, prepareDetachedEvidenceRecordValidationContext, prepareDetachedTimestampValidationContext, prepareSignatureForVerification, prepareSignatureValidationContext, prepareValidationContext, processSignaturesValidation, setCertificateVerifier, setContainerContents, setDetachedContents, setDetachedEvidenceRecordDocuments, setDetachedEvidenceRecords, setManifestFile, setSignaturePolicyProvider, setSigningCertificateSource, setTokenIdentifierProvider, setValidationContextExecutor, setValidationTime, validate, validateContext, validateSignaturePolicy
-
Constructor Details
-
ASiCWithCAdESTimestampAnalyzer
public ASiCWithCAdESTimestampAnalyzer(eu.europa.esig.dss.model.DSSDocument timestamp) Default constructor- Parameters:
timestamp-DSSDocumentthe timestamp document file
-
ASiCWithCAdESTimestampAnalyzer
public ASiCWithCAdESTimestampAnalyzer(eu.europa.esig.dss.model.DSSDocument timestamp, eu.europa.esig.dss.enumerations.TimestampType type) Default constructor with a timestamp type- Parameters:
timestamp-DSSDocumentthe timestamp document filetype-TimestampTypetype of the timestamp
-
-
Method Details
-
getCoveredManifest
public eu.europa.esig.dss.model.ManifestFile getCoveredManifest()Returns the coveredManifestFile- Returns:
ManifestFile
-
setOriginalDocuments
Sets the original documents present in the ASiC container- Parameters:
originalDocuments- a list ofDSSDocuments
-
setArchiveDocuments
Sets the document embedded inside package.zip, when applicable- Parameters:
archiveDocuments- a list ofDSSDocuments
-
setArchiveTimestampType
public void setArchiveTimestampType(eu.europa.esig.dss.enumerations.ArchiveTimestampType archiveTimestampType) Sets the archive timestamp type- Parameters:
archiveTimestampType-ArchiveTimestampType
-
createTimestampToken
protected eu.europa.esig.dss.spi.x509.tsp.TimestampToken createTimestampToken()- Overrides:
createTimestampTokenin classeu.europa.esig.dss.validation.timestamp.DetachedTimestampAnalyzer
-
isTimestampCoveredByEvidenceRecord
protected boolean isTimestampCoveredByEvidenceRecord(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampToken, eu.europa.esig.dss.spi.x509.evidencerecord.EvidenceRecord evidenceRecord) - Overrides:
isTimestampCoveredByEvidenceRecordin classeu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
-
getTimestampScopes
protected List<eu.europa.esig.dss.model.scope.SignatureScope> getTimestampScopes(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampToken) - Overrides:
getTimestampScopesin classeu.europa.esig.dss.validation.timestamp.DetachedTimestampAnalyzer
-
addReference
protected boolean addReference(eu.europa.esig.dss.model.scope.SignatureScope signatureScope) - Overrides:
addReferencein classeu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
-