Class ExtendedKeyUsageOtherCriteria
- java.lang.Object
-
- es.gob.afirma.tsl.parsing.impl.common.OtherCriteria
-
- es.gob.afirma.tsl.parsing.impl.common.ExtendedKeyUsageOtherCriteria
-
- All Implemented Interfaces:
IAnyTypeOtherCriteria,java.io.Serializable
public class ExtendedKeyUsageOtherCriteria extends OtherCriteria
Class that represents a implementation for a specific Other Criteria Any Type: ExtendedKeyUsage element.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.1, 15/06/2021.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTOKEN_URN_OIDConstant attribute that represents the token 'urn:oid'.
-
Constructor Summary
Constructors Constructor Description ExtendedKeyUsageOtherCriteria()Constructor method for the class ExtendedKeyUsageOtherCriteria.java.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNewOID(java.lang.String oid)Adds a new OID.booleancheckCertificateWithThisCriteria(java.security.cert.X509Certificate x509cert)Checks if the input certificate verified this criteria.booleanisUnknownOtherCriteria()Checks if this criteria is unknown.-
Methods inherited from class es.gob.afirma.tsl.parsing.impl.common.OtherCriteria
checkOtherCriteriaValue
-
-
-
-
Field Detail
-
TOKEN_URN_OID
public static final java.lang.String TOKEN_URN_OID
Constant attribute that represents the token 'urn:oid'.- See Also:
- Constant Field Values
-
-
Method Detail
-
addNewOID
public final void addNewOID(java.lang.String oid)
Adds a new OID.- Parameters:
oid- OID string representation.
-
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)
-
-