Class DetachedTimestampAnalyzer

java.lang.Object
eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
eu.europa.esig.dss.validation.timestamp.DetachedTimestampAnalyzer
All Implemented Interfaces:
eu.europa.esig.dss.spi.validation.analyzer.DocumentAnalyzer, eu.europa.esig.dss.spi.validation.analyzer.timestamp.TimestampAnalyzer

public class DetachedTimestampAnalyzer extends eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer implements eu.europa.esig.dss.spi.validation.analyzer.timestamp.TimestampAnalyzer
This class performs a processing of a detached timestamp document
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected eu.europa.esig.dss.spi.x509.tsp.TimestampToken
    The TimestampToken to be validated
    protected eu.europa.esig.dss.enumerations.TimestampType
    The type of the timestamp

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

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

    Constructors
    Constructor
    Description
    DetachedTimestampAnalyzer(eu.europa.esig.dss.model.DSSDocument timestampFile)
    The default constructor
    DetachedTimestampAnalyzer(eu.europa.esig.dss.model.DSSDocument timestampFile, eu.europa.esig.dss.enumerations.TimestampType timestampType)
    The default constructor with a type
  • Method Summary

    Modifier and Type
    Method
    Description
    protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken>
     
    protected eu.europa.esig.dss.spi.x509.tsp.TimestampToken
    This method creates a timestamp token from the validating document
    List<eu.europa.esig.dss.model.DSSDocument>
    getOriginalDocuments(eu.europa.esig.dss.spi.signature.AdvancedSignature advancedSignature)
     
    List<eu.europa.esig.dss.model.DSSDocument>
     
    eu.europa.esig.dss.spi.x509.tsp.TimestampToken
     
    eu.europa.esig.dss.model.DSSDocument
     
    protected List<eu.europa.esig.dss.model.scope.SignatureScope>
    getTimestampScopes(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampToken)
    Finds timestamp scopes
    boolean
    isSupported(eu.europa.esig.dss.model.DSSDocument dssDocument)
     
    void
    setTimestampedData(eu.europa.esig.dss.model.DSSDocument document)
    Sets the data that has been timestamped

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

    addReference, 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, 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
  • Field Details

    • timestampType

      protected eu.europa.esig.dss.enumerations.TimestampType timestampType
      The type of the timestamp
    • timestampToken

      protected eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampToken
      The TimestampToken to be validated
  • Constructor Details

    • DetachedTimestampAnalyzer

      public DetachedTimestampAnalyzer(eu.europa.esig.dss.model.DSSDocument timestampFile)
      The default constructor
      Parameters:
      timestampFile - DSSDocument timestamp document to validate
    • DetachedTimestampAnalyzer

      public DetachedTimestampAnalyzer(eu.europa.esig.dss.model.DSSDocument timestampFile, eu.europa.esig.dss.enumerations.TimestampType timestampType)
      The default constructor with a type
      Parameters:
      timestampFile - DSSDocument timestamp document to validate
      timestampType - TimestampType
  • Method Details

    • isSupported

      public boolean isSupported(eu.europa.esig.dss.model.DSSDocument dssDocument)
      Specified by:
      isSupported in interface eu.europa.esig.dss.spi.validation.analyzer.DocumentAnalyzer
    • buildDetachedTimestamps

      protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> buildDetachedTimestamps()
      Overrides:
      buildDetachedTimestamps in class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
    • getTimestamp

      public eu.europa.esig.dss.spi.x509.tsp.TimestampToken getTimestamp()
      Specified by:
      getTimestamp in interface eu.europa.esig.dss.spi.validation.analyzer.timestamp.TimestampAnalyzer
    • createTimestampToken

      protected eu.europa.esig.dss.spi.x509.tsp.TimestampToken createTimestampToken()
      This method creates a timestamp token from the validating document
      Returns:
      TimestampToken
    • setTimestampedData

      public void setTimestampedData(eu.europa.esig.dss.model.DSSDocument document)
      Sets the data that has been timestamped
      Parameters:
      document - DSSDocument timestamped data
    • getTimestampedData

      public eu.europa.esig.dss.model.DSSDocument getTimestampedData()
      Specified by:
      getTimestampedData in interface eu.europa.esig.dss.spi.validation.analyzer.timestamp.TimestampAnalyzer
    • getTimestampScopes

      protected List<eu.europa.esig.dss.model.scope.SignatureScope> getTimestampScopes(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampToken)
      Finds timestamp scopes
      Parameters:
      timestampToken - TimestampToken
      Returns:
      a list of SignatureScopes
    • getOriginalDocuments

      public List<eu.europa.esig.dss.model.DSSDocument> getOriginalDocuments(String signatureId)
      Specified by:
      getOriginalDocuments in interface eu.europa.esig.dss.spi.validation.analyzer.DocumentAnalyzer
      Overrides:
      getOriginalDocuments in class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
    • getOriginalDocuments

      public List<eu.europa.esig.dss.model.DSSDocument> getOriginalDocuments(eu.europa.esig.dss.spi.signature.AdvancedSignature advancedSignature)
      Specified by:
      getOriginalDocuments in interface eu.europa.esig.dss.spi.validation.analyzer.DocumentAnalyzer