Class AbstractSignatureScopeFinder

java.lang.Object
eu.europa.esig.dss.spi.validation.scope.AbstractSignatureScopeFinder
Direct Known Subclasses:
CAdESSignatureScopeFinder, DetachedTimestampScopeFinder, EncapsulatedTimestampScopeFinder, EvidenceRecordScopeFinder, JAdESSignatureScopeFinder, PdfRevisionScopeFinder, XAdESSignatureScopeFinder

public abstract class AbstractSignatureScopeFinder extends Object
The abstract class for SignatureScope finding
  • Constructor Details

    • AbstractSignatureScopeFinder

      protected AbstractSignatureScopeFinder()
      Default constructor instantiating the object with default values
  • Method Details

    • isASiCSArchive

      protected boolean isASiCSArchive(AdvancedSignature advancedSignature)
      Checks if the given signature represents an ASiC-S container
      Parameters:
      advancedSignature - AdvancedSignature to check
      Returns:
      TRUE if the signature is ASiC-S, FALSE otherwise
    • isASiCEArchive

      protected boolean isASiCEArchive(AdvancedSignature advancedSignature)
      Checks if the given signature represents an ASiC-E container
      Parameters:
      advancedSignature - AdvancedSignature to check
      Returns:
      TRUE if the signature is ASiC-E, FALSE otherwise
    • createInMemoryDocument

      protected DSSDocument createInMemoryDocument(byte[] binaries)
      Creates a DSSDocument from given binaries
      Parameters:
      binaries - Digest to create an in-memory document instance from
      Returns:
      DSSDocument
    • createDigestDocument

      protected DSSDocument createDigestDocument(Digest digest)
      Creates a DSSDocument from given digest
      Parameters:
      digest - Digest to create a digest document instance from
      Returns:
      DSSDocument