Class AbstractSignedAndTimestampedFilesCoveredCheck<T extends 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 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 DiagnosticData diagnosticData
      Diagnostic data
    • timestampFilename

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

  • Method Details

    • process

      protected boolean process()
      Description copied from class: ChainItem
      Performs the check
      Specified by:
      process in class ChainItem<T extends 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 MessageTag getMessageTag()
      Description copied from class: ChainItem
      Returns an i18n key String of a message to get
      Overrides:
      getMessageTag in class ChainItem<T extends XmlConstraintsConclusion>
      Returns:
      MessageTag key
    • getErrorMessageTag

      protected 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 XmlConstraintsConclusion>
      Returns:
      MessageTag key
    • getFailedIndicationForConclusion

      protected Indication getFailedIndicationForConclusion()
      Description copied from class: ChainItem
      Gets an Indication in case of failure
      Specified by:
      getFailedIndicationForConclusion in class ChainItem<T extends XmlConstraintsConclusion>
      Returns:
      Indication
    • getFailedSubIndicationForConclusion

      protected SubIndication getFailedSubIndicationForConclusion()
      Description copied from class: ChainItem
      Gets a SubIndication in case of failure
      Specified by:
      getFailedSubIndicationForConclusion in class ChainItem<T extends XmlConstraintsConclusion>
      Returns:
      SubIndication