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

java.lang.Object
eu.europa.esig.dss.validation.process.bbb.sav.cc.DigestMatcherListCryptographicChainBuilder<T>
Type Parameters:
T - XmlConstraintsConclusion

public class DigestMatcherListCryptographicChainBuilder<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion> extends Object
This class extracts used Digest Algorithms across all provides digest matchers and performs validation for the used algorithms
  • Constructor Details

    • DigestMatcherListCryptographicChainBuilder

      public DigestMatcherListCryptographicChainBuilder(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, T result, List<eu.europa.esig.dss.diagnostic.jaxb.XmlDigestMatcher> digestMatchers, Date validationTime, eu.europa.esig.dss.model.policy.CryptographicSuite constraint)
      Default constructor
      Parameters:
      i18nProvider - the access to translations
      result - XmlConstraintsConclusion
      digestMatchers - a list of XmlDigestMatchers to be validated
      validationTime - Date the validation time
      constraint - CryptographicSuite
  • Method Details

    • build

      public ChainItem<T> build(ChainItem<T> chainItem)
      Executes validation of against all used DigestAlgorithms and builds the validation chain continuing the provided chainItem
      Parameters:
      chainItem - returned by the validation process, to be continued with digest matcher checks
      Returns:
      a list of XmlCCs containing validation results
    • getConcernedCC

      public eu.europa.esig.dss.detailedreport.jaxb.XmlCC getConcernedCC()
      Returns a failed XmlCC result, when applicable
      Returns:
      XmlCC when validation of digest matchers fails, NULL otherwise
    • getConcernedMaterial

      public List<String> getConcernedMaterial()
      Returns a failed list of XmlDigestMatcher's, when applicable
      Returns:
      a list of XmlDigestMatchers when validation fails, NULL otherwise