Class TLPredicateFactory

java.lang.Object
eu.europa.esig.dss.tsl.function.TLPredicateFactory

public class TLPredicateFactory extends Object
This class provides utils for creation of common Predicates used for TLSource/LOTLSource configuration.
  • Method Details

    • createEULOTLPredicate

      public static Predicate<OtherTSLPointerType> createEULOTLPredicate()
      This method creates a Predicate used to filter the XML European list of trusted list (LOTL)
      Returns:
      Predicate
    • createEUTLPredicate

      public static Predicate<OtherTSLPointerType> createEUTLPredicate()
      This method creates a Predicate used to filter the XML European Trusted List (TL)
      Returns:
      Predicate
    • createPredicateWithCustomTSLType

      public static Predicate<OtherTSLPointerType> createPredicateWithCustomTSLType(String tslType)
      This method creates a Predicate used to filter an XML Trusted List (TL) defined with a custom TSLType
      Parameters:
      tslType - String representing URI present within TSPType element used to define the Trusted List
      Returns:
      Predicate
    • createEUTLCountryCodePredicate

      public static Predicate<OtherTSLPointerType> createEUTLCountryCodePredicate(String... countryCodes)
      This method creates a Predicate used to filter XML European Trusted Lists (TL) with the defined Scheme Territory codes Example : "DE", "FR"
      Parameters:
      countryCodes - an array of Strings representing Scheme Territory codes to filter Trusted Lists by
      Returns:
      Predicate
    • createXMLOtherTSLPointerPredicate

      public static Predicate<OtherTSLPointerType> createXMLOtherTSLPointerPredicate()
      This method creates a predicate used to filter all XML Trusted Lists (TL)
      Returns:
      Predicate
    • createPDFOtherTSLPointerPredicate

      public static Predicate<OtherTSLPointerType> createPDFOtherTSLPointerPredicate()
      This method creates a predicate used to filter all PDF Trusted Lists (TL)
      Returns:
      Predicate
    • createPredicateWithCustomMimeType

      public static Predicate<OtherTSLPointerType> createPredicateWithCustomMimeType(String mimetype)
      This method creates a predicate used to filter all Trusted Lists (TL) with the defined mimetype Example : "application/vnd.etsi.tsl+xml" to filter XML Trusted Lists (TL)
      Parameters:
      mimetype - String defyining the MimeType
      Returns:
      Predicate