Class CompositeCondition

java.lang.Object
eu.europa.esig.dss.tsl.dto.condition.CompositeCondition
All Implemented Interfaces:
eu.europa.esig.dss.model.tsl.Condition, Serializable

public class CompositeCondition extends Object implements eu.europa.esig.dss.model.tsl.Condition
Condition resulting of the matchingCriteriaIndicator of other Conditions
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    The default constructor for CriteriaListCondition.
    CompositeCondition(eu.europa.esig.trustedlist.enums.Assert matchingCriteriaIndicator)
    Constructor for CriteriaListCondition.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addChild(eu.europa.esig.dss.model.tsl.Condition condition)
    This method adds a child condition.
    boolean
    check(eu.europa.esig.dss.model.x509.CertificateToken certificateToken)
    Execute the composite condition of the given certificate
    final List<eu.europa.esig.dss.model.tsl.Condition>
    Returns the list of child conditions.
    eu.europa.esig.trustedlist.enums.Assert
    Returns the matching criteria indicator
     
    toString(String indent)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CompositeCondition

      public CompositeCondition()
      The default constructor for CriteriaListCondition. All conditions must match
    • CompositeCondition

      public CompositeCondition(eu.europa.esig.trustedlist.enums.Assert matchingCriteriaIndicator)
      Constructor for CriteriaListCondition.
      Parameters:
      matchingCriteriaIndicator - matching criteria indicator: atLeastOne, all, none
  • Method Details

    • getChildren

      public final List<eu.europa.esig.dss.model.tsl.Condition> getChildren()
      Returns the list of child conditions.
      Returns:
      an unmodifiable list, possibly empty; never null
    • addChild

      public void addChild(eu.europa.esig.dss.model.tsl.Condition condition)
      This method adds a child condition. This allows to handle embedded conditions.
      Parameters:
      condition - the condition to add in the composite
    • getMatchingCriteriaIndicator

      public eu.europa.esig.trustedlist.enums.Assert getMatchingCriteriaIndicator()
      Returns the matching criteria indicator
      Returns:
      matching criteria indicator: atLeastOne, all, none
    • check

      public boolean check(eu.europa.esig.dss.model.x509.CertificateToken certificateToken)
      Execute the composite condition of the given certificate
      Specified by:
      check in interface eu.europa.esig.dss.model.tsl.Condition
      Parameters:
      certificateToken - certificate to be checked
      Returns:
      true if the condition matches
    • toString

      public String toString(String indent)
      Specified by:
      toString in interface eu.europa.esig.dss.model.tsl.Condition
    • toString

      public String toString()
      Overrides:
      toString in class Object