Module jpms_dss_tsl_validation
Class CompositeCondition
java.lang.Object
eu.europa.esig.dss.tsl.dto.condition.CompositeCondition
- All Implemented Interfaces:
eu.europa.esig.dss.model.tsl.Condition,Serializable
Condition resulting of the matchingCriteriaIndicator of other Conditions
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor for CriteriaListCondition.CompositeCondition(eu.europa.esig.trustedlist.enums.Assert matchingCriteriaIndicator) Constructor for CriteriaListCondition. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(eu.europa.esig.dss.model.tsl.Condition condition) This method adds a child condition.booleancheck(eu.europa.esig.dss.model.x509.CertificateToken certificateToken) Execute the composite condition of the given certificatefinal List<eu.europa.esig.dss.model.tsl.Condition> Returns the list of child conditions.eu.europa.esig.trustedlist.enums.AssertReturns the matching criteria indicatortoString()
-
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
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:
checkin interfaceeu.europa.esig.dss.model.tsl.Condition- Parameters:
certificateToken- certificate to be checked- Returns:
- true if the condition matches
-
toString
- Specified by:
toStringin interfaceeu.europa.esig.dss.model.tsl.Condition
-
toString
-