no.difi.certvalidator.structure.AbstractJunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-certvalidator Show documentation
Show all versions of commons-certvalidator Show documentation
Rule engine for creation of certificate validator.
package no.difi.certvalidator.structure;
import no.difi.certvalidator.api.ValidatorRule;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public abstract class AbstractJunction implements ValidatorRule {
protected List validatorRules = new ArrayList();
public AbstractJunction(ValidatorRule... validatorRules) {
addRule(validatorRules);
}
public AbstractJunction addRule(ValidatorRule... validatorRules) {
this.validatorRules.addAll(Arrays.asList(validatorRules));
return this;
}
}