public class CriteriaList
extends java.lang.Object
implements java.io.Serializable
Class that represents a list of assertions related to certificate contents (e.g. key usage) and status (e.g. additional assessment) used to filter certificates.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ASSERT_ALL
Constant attribute that represents the assertion 'all'.
|
static java.lang.String |
ASSERT_ATLEASTONE
Constant attribute that represents the assertion 'atLeastOne'.
|
static java.lang.String |
ASSERT_NONE
Constant attribute that represents the assertion 'none'.
|
| Constructor and Description |
|---|
CriteriaList(java.lang.String assertTypeParam)
Constructor method for the class CriteriaList.java.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNewCriteriaList(CriteriaList cl)
Add new sub Criteria List to this Criteria List.
|
void |
addNewKeyUsage(KeyUsage ku)
Adds a new Key Usage to the Criteria List.
|
void |
addNewPolicySet(PoliciesList pl)
Add new policy set to the Criteria List.
|
boolean |
checkCertificate(java.security.cert.X509Certificate cert)
Checks if the input certificate is accomplished with this Criteria List.
|
java.lang.String |
getAssertType()
Gets the value of the attribute
assertType. |
java.util.List<CriteriaList> |
getCriteriaListList()
Gets the value of the attribute
criteriaListList. |
java.lang.String |
getDescription()
Gets the value of the attribute
description. |
java.util.List<KeyUsage> |
getKeyUsageList()
Gets the value of the attribute
keyUsageList. |
IAnyTypeOtherCriteria |
getOtherCriteria()
Gets the value of the attribute
otherCriteria. |
java.util.List<PoliciesList> |
getPolicySetList()
Gets the value of the attribute
policySetList. |
boolean |
isThereSomeCriteriaList()
Checks if there is at least one sub criteria list.
|
boolean |
isThereSomeKeyUsage()
Check if exists at least one key usage.
|
boolean |
isThereSomePolicySet()
Checks if there is at least one policy set.
|
void |
setDescription(java.lang.String descriptionParam)
Sets the value of the attribute
description. |
void |
setOtherCriteria(IAnyTypeOtherCriteria otherCriteriaParam)
Sets the value of the attribute
otherCriteria. |
public static final java.lang.String ASSERT_ALL
public static final java.lang.String ASSERT_ATLEASTONE
public static final java.lang.String ASSERT_NONE
public CriteriaList(java.lang.String assertTypeParam)
assertTypeParam - Assert type to assing to this object.public final java.lang.String getAssertType()
assertType.assertType.public final java.util.List<KeyUsage> getKeyUsageList()
keyUsageList.keyUsageList.public final void addNewKeyUsage(KeyUsage ku)
ku - Key Usage to add. If it is null, then do nothing.public final boolean isThereSomeKeyUsage()
true if exists at least one key usage, otherwise false.public final java.util.List<PoliciesList> getPolicySetList()
policySetList.policySetList.public final void addNewPolicySet(PoliciesList pl)
pl - Policy Set to add. If it is null, then do nothing.public final boolean isThereSomePolicySet()
true if there is at least one policy set, otherwise false.public final java.util.List<CriteriaList> getCriteriaListList()
criteriaListList.criteriaListList.public final void addNewCriteriaList(CriteriaList cl)
cl - Criteria List to add. If it is null, then do nothing.public final boolean isThereSomeCriteriaList()
true if there is at least one sub criteria list, otherwise false.public final java.lang.String getDescription()
description.description.public final void setDescription(java.lang.String descriptionParam)
description.descriptionParam - The value for the attribute description.public final IAnyTypeOtherCriteria getOtherCriteria()
otherCriteria.otherCriteria.public final void setOtherCriteria(IAnyTypeOtherCriteria otherCriteriaParam)
otherCriteria.otherCriteriaParam - The value for the attribute otherCriteria.public final boolean checkCertificate(java.security.cert.X509Certificate cert)
throws TSLQualificationEvalProcessException
cert - X509v3 certificate to check.true if the input certificate is accomplished with this Criteria List,
otherwise false.TSLQualificationEvalProcessException - In case of some error evaluating the input certificate
with the criteria lists.