Class AbstractFormatChecking<S extends eu.europa.esig.dss.diagnostic.AbstractSignatureWrapper>

java.lang.Object
eu.europa.esig.dss.validation.process.Chain<eu.europa.esig.dss.detailedreport.jaxb.XmlFC>
eu.europa.esig.dss.validation.process.bbb.fc.AbstractFormatChecking<S>
Type Parameters:
S - signature or timestamp wrapper
Direct Known Subclasses:
SignatureFormatChecking, TimestampFormatChecking

public abstract class AbstractFormatChecking<S extends eu.europa.esig.dss.diagnostic.AbstractSignatureWrapper> extends Chain<eu.europa.esig.dss.detailedreport.jaxb.XmlFC>
This class contains a common code to be processed as a part of a "5.2.2 Format Checking" building block for validation of signatures and timestamps.
  • Field Details

    • diagnosticData

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

      protected final S extends eu.europa.esig.dss.diagnostic.AbstractSignatureWrapper token
      The token to validate
    • context

      protected final eu.europa.esig.dss.enumerations.Context context
      The validation context
    • policy

      protected final eu.europa.esig.dss.model.policy.ValidationPolicy policy
      The validation policy
  • Constructor Details

    • AbstractFormatChecking

      protected AbstractFormatChecking(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, eu.europa.esig.dss.diagnostic.DiagnosticData diagnosticData, S token, eu.europa.esig.dss.enumerations.Context context, eu.europa.esig.dss.model.policy.ValidationPolicy policy)
      Default constructor
      Parameters:
      i18nProvider - I18nProvider
      diagnosticData - DiagnosticData
      token - AbstractSignatureWrapper
      context - Context
      policy - ValidationPolicy
  • Method Details

    • getTitle

      protected eu.europa.esig.dss.i18n.MessageTag getTitle()
      Description copied from class: Chain
      Returns title of a Chain (i.e. BasicBuildingBlock title)
      Overrides:
      getTitle in class Chain<eu.europa.esig.dss.detailedreport.jaxb.XmlFC>
      Returns:
      MessageTag
    • getPDFRevisionValidationChain

      protected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlFC> getPDFRevisionValidationChain(ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlFC> item)
      This method chains all PDF revision related checks to the given item chain, when applicable
      Parameters:
      item - ChainItem to append PDF revision related checks
      Returns:
      ChainItem with the PDF revision related checks
    • getPdfaValidationChain

      protected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlFC> getPdfaValidationChain(ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlFC> item)
      This method chains all PDF/A related checks to the given item chain, when applicable
      Parameters:
      item - ChainItem to append PDF/A related checks
      Returns:
      ChainItem with the PDF/A related checks
    • getASiCContainerValidationChain

      protected ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlFC> getASiCContainerValidationChain(ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlFC> item)
      This method chains all ASiC container related checks to the given item chain, when applicable
      Parameters:
      item - ChainItem to append ASiC container related checks
      Returns:
      ChainItem with the ASiC container related checks
    • filenameAdherenceCheck

      protected abstract ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlFC> filenameAdherenceCheck()
      Creates a filename adherence check for the given token type
      Returns:
      ChainItem
    • manifestFilenameAdherenceCheck

      protected abstract ChainItem<eu.europa.esig.dss.detailedreport.jaxb.XmlFC> manifestFilenameAdherenceCheck()
      Creates a filename adherence check for the manifest file related to the given token
      Returns:
      ChainItem