public interface ITSLValidator
Interface that represents a TSL validator regardless it implementation.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Method and Description |
|---|---|
ITSLValidatorResult |
validateCertificateWithTSL(java.security.cert.X509Certificate cert,
boolean isCACert,
boolean isTsaCertificate,
java.util.Date validationDate,
boolean checkStatusRevocation)
Validate the status of the input certificate with the information of the TSL.
|
ITSLValidatorResult validateCertificateWithTSL(java.security.cert.X509Certificate cert, boolean isCACert, boolean isTsaCertificate, java.util.Date validationDate, boolean checkStatusRevocation) throws TSLArgumentException, TSLValidationException
cert - Certificate X509 v3 to validate.isCACert - Flag that indicates if the input certificate has the Basic Constraints with the CA flag activated
(true) or not (false).isTsaCertificate - Flag that indicates if the input certificate has the id-kp-timestamping key purpose
(true) or not (false).validationDate - Validation date to check the certificate status revocation.checkStatusRevocation - Flag that indicates if only try to detect the input certificate (false)
or also checks the revocation status of this (true).TSLArgumentException - In case of the input certificate was null.TSLValidationException - In case of some error validating the certificate with the TSL.