Class AbstractSignatureScopeFinder

java.lang.Object
eu.europa.esig.dss.validation.scope.AbstractSignatureScopeFinder
Direct Known Subclasses:
CAdESSignatureScopeFinder, DetachedTimestampScopeFinder, EncapsulatedTimestampScopeFinder, 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

    • getDefaultDigestAlgorithm

      protected DigestAlgorithm getDefaultDigestAlgorithm()
      Returns the used DigestAlgorithm
      Returns:
      DigestAlgorithm
    • setDefaultDigestAlgorithm

      public void setDefaultDigestAlgorithm(DigestAlgorithm defaultDigestAlgorithm)
      Sets the default DigestAlgorithm to use for SignatureScope digest computation
      Parameters:
      defaultDigestAlgorithm - DigestAlgorithm to use
    • getTokenIdentifierProvider

      protected TokenIdentifierProvider getTokenIdentifierProvider()
      Gets the TokenIdentifierProvider
      Returns:
      TokenIdentifierProvider
    • setTokenIdentifierProvider

      public void setTokenIdentifierProvider(TokenIdentifierProvider tokenIdentifierProvider)
      Sets the TokenIdentifierProvider to be used for identifiers extraction
      Parameters:
      tokenIdentifierProvider - TokenIdentifierProvider
    • getDigest

      protected Digest getDigest(DSSDocument document)
      Gets digest of a document
      Parameters:
      document - DSSDocument
      Returns:
      Digest
    • getDigest

      protected Digest getDigest(byte[] dataBytes)
      Gets digest of a binaries
      Parameters:
      dataBytes - a byte array
      Returns:
      Digest
    • 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