Package es.gob.afirma.tsl.parsing.ifaces
Interface IAnyTypeOtherCriteria
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
CertSubjectDNAttributeOtherCriteria,ExtendedKeyUsageOtherCriteria,OtherCriteria,UnknownOtherCriteria
public interface IAnyTypeOtherCriteria extends java.io.SerializableInterface that defines the common method for any type other criteria in a Criteria List.
Project:Platform for detection and validation of certificates recognized in European TSL.
- Version:
- 1.0, 11/11/2020.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckCertificateWithThisCriteria(java.security.cert.X509Certificate x509cert)Checks if the input certificate verified this criteria.voidcheckOtherCriteriaValue(ITSLObject tsl)Checks if the Other Criteria has an appropiate value in the TSL.booleanisUnknownOtherCriteria()Checks if this criteria is unknown.
-
-
-
Method Detail
-
checkOtherCriteriaValue
void checkOtherCriteriaValue(ITSLObject tsl) throws TSLMalformedException
Checks if the Other Criteria has an appropiate value in the TSL.- Parameters:
tsl- TSL Object representation that contains this Other Criteria.- Throws:
TSLMalformedException- In case of the Criteria Value has not a correct value.
-
checkCertificateWithThisCriteria
boolean checkCertificateWithThisCriteria(java.security.cert.X509Certificate x509cert) throws TSLCertificateValidationExceptionChecks if the input certificate verified this criteria.- Parameters:
x509cert- X509v3 certificate to check.- Returns:
trueif this criteria is accomplished by the input certificate, otherwisefalse.- Throws:
TSLCertificateValidationException- In case of the certificate does not pass the validation process.
-
isUnknownOtherCriteria
boolean isUnknownOtherCriteria()
Checks if this criteria is unknown. In that case must be ignored.- Returns:
trueif it is unknown, otherwisefalse.
-
-