Package eu.europa.esig.dss.tsl
Class CompositeCondition
- java.lang.Object
-
- eu.europa.esig.dss.spi.tsl.Condition
-
- eu.europa.esig.dss.tsl.CompositeCondition
-
- All Implemented Interfaces:
Serializable
public class CompositeCondition extends Condition
Condition resulting of the matchingCriteriaIndicator of other Conditions- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompositeCondition()The default constructor for CriteriaListCondition.CompositeCondition(Assert matchingCriteriaIndicator)Constructor for CriteriaListCondition.
-
Method Summary
Modifier and Type Method Description voidaddChild(Condition condition)This method adds a child condition.booleancheck(CertificateToken certificateToken)Execute the composite condition of the given certificateList<Condition>getChildren()Returns the list of child conditions.AssertgetMatchingCriteriaIndicator()Returns the matching criteria indicatorStringtoString()StringtoString(String indent)Returns a string representation of the condition
-
-
-
Constructor Detail
-
CompositeCondition
public CompositeCondition()
The default constructor for CriteriaListCondition. All conditions must match
-
CompositeCondition
public CompositeCondition(Assert matchingCriteriaIndicator)
Constructor for CriteriaListCondition.- Parameters:
matchingCriteriaIndicator- matching criteria indicator: atLeastOne, all, none
-
-
Method Detail
-
getChildren
public final List<Condition> getChildren()
Returns the list of child conditions.- Returns:
- an unmodifiable list, possibly empty; never
null
-
addChild
public void addChild(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 Assert getMatchingCriteriaIndicator()
Returns the matching criteria indicator- Returns:
- matching criteria indicator: atLeastOne, all, none
-
check
public boolean check(CertificateToken certificateToken)
Execute the composite condition of the given certificate
-
toString
public String toString(String indent)
Description copied from class:ConditionReturns a string representation of the condition
-
-