Class FilenameAdherenceCheck<T extends AbstractSignatureWrapper>

java.lang.Object
eu.europa.esig.dss.validation.process.ChainItem<XmlFC>
eu.europa.esig.dss.validation.process.bbb.fc.checks.FilenameAdherenceCheck<T>
Type Parameters:
T - AbstractSignatureWrapper implementation (signature or timestamp)
Direct Known Subclasses:
SignatureFilenameAdherenceCheck, SignatureManifestFilenameAdherenceCheck, TimestampFilenameAdherenceCheck, TimestampManifestFilenameAdherenceCheck

public abstract class FilenameAdherenceCheck<T extends AbstractSignatureWrapper> extends ChainItem<XmlFC>
Verifies validity of the token's filename according to the ASiC's specification
  • Field Details

    • META_INF_FOLDER

      protected static final String META_INF_FOLDER
      The META-INF folder
      See Also:
    • SIGNATURE_FILENAME

      protected static final String SIGNATURE_FILENAME
      The signature filename
      See Also:
    • TIMESTAMP_FILENAME

      protected static final String TIMESTAMP_FILENAME
      The timestamp filename
      See Also:
    • EVIDENCE_RECORD_FILENAME

      protected static final String EVIDENCE_RECORD_FILENAME
      The evidence record filename
      See Also:
    • ARCHIVE_MANIFEST_FILENAME

      protected static final String ARCHIVE_MANIFEST_FILENAME
      The ASiC Archive Manifest name
      See Also:
    • ASICE_METAINF_MANIFEST

      protected static final String ASICE_METAINF_MANIFEST
      The default XML manifest filename (META-INF/manifest.xml)
      See Also:
    • METAINF_ASIC_MANIFEST

      protected static final String METAINF_ASIC_MANIFEST
      The default ASiC manifest filename (META-INF/ASiCManifest*.xml)
      See Also:
    • XML_EXTENSION

      protected static final String XML_EXTENSION
      The XML file extension
      See Also:
    • token

      protected final T extends AbstractSignatureWrapper token
      Token to be verified
    • diagnosticData

      protected final DiagnosticData diagnosticData
      Diagnostic data
  • Constructor Details

  • Method Details

    • isASiCManifest

      protected boolean isASiCManifest(String filename)
      Checks if the filename corresponds to the "META-INF/ASiCManifest*.xml" pattern
      Parameters:
      filename - String to check
      Returns:
      TRUE if the filename matches the ASiCManifest definition, FALSE otherwise
    • isASiCArchiveManifest

      protected boolean isASiCArchiveManifest(String filename)
      Checks if the filename corresponds to the "META-INF/*ASiCArchiveManifest*.xml" pattern
      Parameters:
      filename - String to check
      Returns:
      TRUE if the filename matches the ASiCArchiveManifest definition, FALSE otherwise
    • getFailedIndicationForConclusion

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

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