Class DetachedTimestampValidator

java.lang.Object
eu.europa.esig.dss.validation.SignedDocumentValidator
eu.europa.esig.dss.validation.timestamp.DetachedTimestampValidator
All Implemented Interfaces:
DocumentValidator, ProcessExecutorProvider<DocumentProcessExecutor>, TimestampValidator

public class DetachedTimestampValidator extends SignedDocumentValidator implements TimestampValidator
Detached CMS TimestampToken Validator
  • Constructor Details

    • DetachedTimestampValidator

      protected DetachedTimestampValidator(DetachedTimestampAnalyzer detachedTimestampAnalyzer)
      Constructor with an analyzer
      Parameters:
      detachedTimestampAnalyzer - DetachedTimestampAnalyzer
    • DetachedTimestampValidator

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

      public DetachedTimestampValidator(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

    • getDocumentAnalyzer

      public DetachedTimestampAnalyzer getDocumentAnalyzer()
      Description copied from class: SignedDocumentValidator
      Returns the current instance of DocumentAnalyzer
      Overrides:
      getDocumentAnalyzer in class SignedDocumentValidator
      Returns:
      DocumentAnalyzer
    • getTimestamp

      public eu.europa.esig.dss.spi.x509.tsp.TimestampToken getTimestamp()
      Description copied from interface: TimestampValidator
      Returns a single TimestampToken to be validated
      Specified by:
      getTimestamp in interface TimestampValidator
      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()
      Description copied from interface: TimestampValidator
      Returns the timestamped data
      Specified by:
      getTimestampedData in interface TimestampValidator
      Returns:
      DSSDocument timestamped data
    • getOriginalDocuments

      public List<eu.europa.esig.dss.model.DSSDocument> getOriginalDocuments(String signatureId)
      Description copied from interface: DocumentValidator
      This method returns the signed document(s) without their signature(s)
      Specified by:
      getOriginalDocuments in interface DocumentValidator
      Overrides:
      getOriginalDocuments in class SignedDocumentValidator
      Parameters:
      signatureId - the DSS ID of the signature to extract original signer data for
      Returns:
      list of DSSDocuments
    • getOriginalDocuments

      public List<eu.europa.esig.dss.model.DSSDocument> getOriginalDocuments(eu.europa.esig.dss.spi.signature.AdvancedSignature advancedSignature)
      Description copied from interface: DocumentValidator
      This method returns the signed document(s) without their signature(s)
      Specified by:
      getOriginalDocuments in interface DocumentValidator
      Overrides:
      getOriginalDocuments in class SignedDocumentValidator
      Parameters:
      advancedSignature - AdvancedSignature to find signer documents for
      Returns:
      list of DSSDocuments