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@.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TOKEN_URN_OID
Constant attribute that represents the token 'urn:oid'.
|
| Constructor and Description |
|---|
ExtendedKeyUsageOtherCriteria()
Constructor method for the class ExtendedKeyUsageOtherCriteria.java.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNewOID(java.lang.String oid)
Adds a new OID.
|
boolean |
checkCertificateWithThisCriteria(java.security.cert.X509Certificate x509cert)
Checks if the input certificate verified this criteria.
|
boolean |
isUnknownOtherCriteria()
Checks if this criteria is unknown.
|
checkOtherCriteriaValuepublic static final java.lang.String TOKEN_URN_OID
public ExtendedKeyUsageOtherCriteria()
public final void addNewOID(java.lang.String oid)
oid - OID string representation.public final boolean isUnknownOtherCriteria()
true if it is unknown, otherwise false.IAnyTypeOtherCriteria.isUnknownOtherCriteria()public final boolean checkCertificateWithThisCriteria(java.security.cert.X509Certificate x509cert)
throws TSLCertificateValidationException
x509cert - X509v3 certificate to check.true if this criteria is accomplished by the input certificate,
otherwise false.TSLCertificateValidationException - In case of the certificate does not pass
the validation process.IAnyTypeOtherCriteria.checkCertificateWithThisCriteria(java.security.cert.X509Certificate)