Module jpms_dss_spi

Class EncapsulatedTimestampScopeFinder

java.lang.Object
eu.europa.esig.dss.spi.validation.scope.AbstractSignatureScopeFinder
eu.europa.esig.dss.spi.validation.scope.EncapsulatedTimestampScopeFinder
All Implemented Interfaces:
TimestampScopeFinder

public class EncapsulatedTimestampScopeFinder extends AbstractSignatureScopeFinder implements TimestampScopeFinder
This class is used to find a signature scope for an embedded timestamp from a collection of SignatureScope candidates, extracted from a signature
  • Field Details

    • signature

      protected AdvancedSignature signature
      AdvancedSignature embedding the timestamp
  • Constructor Details

    • EncapsulatedTimestampScopeFinder

      public EncapsulatedTimestampScopeFinder()
      Default constructor instantiating object with null signature
  • Method Details

    • setSignature

      public void setSignature(AdvancedSignature signature)
      This method sets an encapsulating AdvancedSignature
      Parameters:
      signature - AdvancedSignature
    • findTimestampScope

      public List<eu.europa.esig.dss.model.scope.SignatureScope> findTimestampScope(TimestampToken timestampToken)
      Description copied from interface: TimestampScopeFinder
      This method returns a timestamp scope for the given TimestampToken
      Specified by:
      findTimestampScope in interface TimestampScopeFinder
      Parameters:
      timestampToken - TimestampToken to get signature scope for
      Returns:
      a list of SignatureScopes
    • filterCoveredSignatureScopes

      protected List<eu.europa.esig.dss.model.scope.SignatureScope> filterCoveredSignatureScopes(TimestampToken timestampToken)
      This method filters and returns covered SignatureScopes by the current timestamp
      Parameters:
      timestampToken - TimestampToken
      Returns:
      a list of SignatureScopes