Interface ITSLValidator

  • All Known Implementing Classes:
    ATSLValidator, TSLValidator

    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@.

    Version:
    1.0, 16/11/2020.
    • Method Detail

      • validateCertificateWithTSL

        ITSLValidatorResult validateCertificateWithTSL​(java.security.cert.X509Certificate cert,
                                                       boolean isCACert,
                                                       boolean isTsaCertificate,
                                                       java.util.Date validationDate,
                                                       boolean checkStatusRevocation)
                                                throws TSLArgumentException,
                                                       TSLValidationException
        Validate the status of the input certificate with the information of the TSL.
        Parameters:
        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).
        Returns:
        validation result object representation.
        Throws:
        TSLArgumentException - In case of the input certificate was null.
        TSLValidationException - In case of some error validating the certificate with the TSL.