Class UnknownOtherCriteria
- java.lang.Object
-
- es.gob.afirma.tsl.parsing.impl.common.OtherCriteria
-
- es.gob.afirma.tsl.parsing.impl.common.UnknownOtherCriteria
-
- All Implemented Interfaces:
IAnyTypeOtherCriteria,java.io.Serializable
public class UnknownOtherCriteria extends OtherCriteria
Class that represents a implementation for a specific Other Criteria Any Type: Unknown element.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.0, 11/11/2020.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnknownOtherCriteria(java.lang.String elementName)Constructor method for the class UnknownOtherCriteria.java.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckCertificateWithThisCriteria(java.security.cert.X509Certificate x509cert)Checks if the input certificate verified this criteria.java.lang.StringgetElementLocalName()Gets the value of the attributeelementLocalName.booleanisUnknownOtherCriteria()Checks if this criteria is unknown.-
Methods inherited from class es.gob.afirma.tsl.parsing.impl.common.OtherCriteria
checkOtherCriteriaValue
-
-
-
-
Method Detail
-
getElementLocalName
public final java.lang.String getElementLocalName()
Gets the value of the attributeelementLocalName.- Returns:
- the value of the attribute
elementLocalName.
-
isUnknownOtherCriteria
public final boolean isUnknownOtherCriteria()
Checks if this criteria is unknown. In that case must be ignored.- Returns:
trueif it is unknown, otherwisefalse.- See Also:
IAnyTypeOtherCriteria.isUnknownOtherCriteria()
-
checkCertificateWithThisCriteria
public final 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.- See Also:
IAnyTypeOtherCriteria.checkCertificateWithThisCriteria(java.security.cert.X509Certificate)
-
-