Class AbstractSignedAndTimestampedFilesCoveredCheck<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion>

java.lang.Object
eu.europa.esig.dss.validation.process.ChainItem<T>
eu.europa.esig.dss.validation.process.bbb.fc.checks.AbstractSignedAndTimestampedFilesCoveredCheck<T>
Type Parameters:
T - XmlConstraintsConclusion
Direct Known Subclasses:
EvidenceRecordSignedAndTimestampedFilesCoveredCheck, SignedAndTimestampedFilesCoveredCheck

public abstract class AbstractSignedAndTimestampedFilesCoveredCheck<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion> extends ChainItem<T>
This class checks whether all files signed by the covered signatures or timestamped by covered timestamps are covered by the current timestamp as well
  • Field Details

    • diagnosticData

      protected final eu.europa.esig.dss.diagnostic.DiagnosticData diagnosticData
      Diagnostic data
    • timestampFilename

      protected final String timestampFilename
      Filename of the timestamp file to be verified
  • Constructor Details

    • AbstractSignedAndTimestampedFilesCoveredCheck

      protected AbstractSignedAndTimestampedFilesCoveredCheck(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, T result, eu.europa.esig.dss.diagnostic.DiagnosticData diagnosticData, String timestampFilename, eu.europa.esig.dss.model.policy.LevelRule constraint)
      Default constructor
      Parameters:
      i18nProvider - I18nProvider
      result - XmlConstraintsConclusion
      diagnosticData - DiagnosticData
      timestampFilename - String
      constraint - LevelRule
  • Method Details

    • process

      protected boolean process()
      Description copied from class: ChainItem
      Performs the check
      Specified by:
      process in class ChainItem<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion>
      Returns:
      TRUE if the check succeeds, FALSE otherwise
    • checkManifestFilesCovered

      protected boolean checkManifestFilesCovered(List<String> entries)
      This method is used to run the validation process for the manifest entries coverage
      Parameters:
      entries - a list of String entries covered by a timestamp or a manifest
      Returns:
      TRUE if all manifest entries are covered recursively, FALSE otherwise
    • checkManifestFilesCoveredRecursively

      protected boolean checkManifestFilesCoveredRecursively(List<String> coveredEntries, List<String> manifestEntries, Collection<String> checkedEntries, boolean rootProcess)
      This method verifies whether all entries in a manifestFile are covered by coveredEntries recursively
      Parameters:
      coveredEntries - a list of String entries covered by a timestamp or a manifest
      manifestEntries - a list of Strings containing manifest entries to be evaluated
      checkedEntries - a collection of Strings containing already processed entries
      rootProcess - whether the root manifest is processed
      Returns:
      TRUE if all manifest entries are covered recursively, FALSE otherwise
    • getMessageTag

      protected eu.europa.esig.dss.i18n.MessageTag getMessageTag()
      Description copied from class: ChainItem
      Returns an i18n key String of a message to get
      Overrides:
      getMessageTag in class ChainItem<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion>
      Returns:
      MessageTag key
    • getErrorMessageTag

      protected eu.europa.esig.dss.i18n.MessageTag getErrorMessageTag()
      Description copied from class: ChainItem
      Returns an i18n key String of an error message to get
      Overrides:
      getErrorMessageTag in class ChainItem<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion>
      Returns:
      MessageTag key
    • getFailedIndicationForConclusion

      protected eu.europa.esig.dss.enumerations.Indication getFailedIndicationForConclusion()
      Description copied from class: ChainItem
      Gets an Indication in case of failure
      Specified by:
      getFailedIndicationForConclusion in class ChainItem<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion>
      Returns:
      Indication
    • getFailedSubIndicationForConclusion

      protected eu.europa.esig.dss.enumerations.SubIndication getFailedSubIndicationForConclusion()
      Description copied from class: ChainItem
      Gets a SubIndication in case of failure
      Specified by:
      getFailedSubIndicationForConclusion in class ChainItem<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion>
      Returns:
      SubIndication