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, timestampType

    Fields inherited from class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer

    certificateVerifier, containerContents, detachedContents, detachedEvidenceRecordDocuments, document, manifestFile, signingCertificateSource
  • Constructor Summary

    Constructors
    Constructor
    Description
    ASiCWithCAdESTimestampAnalyzer(eu.europa.esig.dss.model.DSSDocument timestamp)
    Default constructor
    ASiCWithCAdESTimestampAnalyzer(eu.europa.esig.dss.model.DSSDocument timestamp, eu.europa.esig.dss.enumerations.TimestampType type)
    Default constructor with a timestamp type
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    addReference(eu.europa.esig.dss.model.scope.SignatureScope signatureScope)
     
    protected eu.europa.esig.dss.spi.x509.tsp.TimestampToken
     
    eu.europa.esig.dss.model.ManifestFile
    Returns the covered ManifestFile
    protected List<eu.europa.esig.dss.model.scope.SignatureScope>
    getTimestampScopes(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampToken)
     
    protected boolean
    isTimestampCoveredByEvidenceRecord(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampToken, eu.europa.esig.dss.spi.x509.evidencerecord.EvidenceRecord evidenceRecord)
     
    void
    setArchiveDocuments(List<eu.europa.esig.dss.model.DSSDocument> archiveDocuments)
    Sets the document embedded inside package.zip, when applicable
    void
    setArchiveTimestampType(eu.europa.esig.dss.enumerations.ArchiveTimestampType archiveTimestampType)
    Sets the archive timestamp type
    void
    setOriginalDocuments(List<eu.europa.esig.dss.model.DSSDocument> originalDocuments)
    Sets the original documents present in the ASiC container

    Methods inherited from class eu.europa.esig.dss.validation.timestamp.DetachedTimestampAnalyzer

    buildDetachedTimestamps, getOriginalDocuments, getOriginalDocuments, getTimestamp, getTimestampedData, isSupported, setTimestampedData

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ASiCWithCAdESTimestampAnalyzer

      public ASiCWithCAdESTimestampAnalyzer(eu.europa.esig.dss.model.DSSDocument timestamp)
      Default constructor
      Parameters:
      timestamp - DSSDocument the 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 - DSSDocument the timestamp document file
      type - TimestampType type of the timestamp
  • Method Details

    • getCoveredManifest

      public eu.europa.esig.dss.model.ManifestFile getCoveredManifest()
      Returns the covered ManifestFile
      Returns:
      ManifestFile
    • setOriginalDocuments

      public void setOriginalDocuments(List<eu.europa.esig.dss.model.DSSDocument> originalDocuments)
      Sets the original documents present in the ASiC container
      Parameters:
      originalDocuments - a list of DSSDocuments
    • setArchiveDocuments

      public void setArchiveDocuments(List<eu.europa.esig.dss.model.DSSDocument> archiveDocuments)
      Sets the document embedded inside package.zip, when applicable
      Parameters:
      archiveDocuments - a list of DSSDocuments
    • 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:
      createTimestampToken in class eu.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:
      isTimestampCoveredByEvidenceRecord in class eu.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:
      getTimestampScopes in class eu.europa.esig.dss.validation.timestamp.DetachedTimestampAnalyzer
    • addReference

      protected boolean addReference(eu.europa.esig.dss.model.scope.SignatureScope signatureScope)
      Overrides:
      addReference in class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer