Class UtilsSignatureOCSP


  • public final class UtilsSignatureOCSP
    extends java.lang.Object

    Class that contains methods related to the manage of signatures.

    Project:

    Library for the integration with the services of @Firma, eVisor and TS@.

    Version:
    1.1, 18/04/2022.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void validateCertificateViaOCSP​(java.security.cert.X509Certificate certificateToValidate, java.util.Date validationDate, java.lang.String idClient)
      Method that validates a certificate against an OCSP responder.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • validateCertificateViaOCSP

        public static void validateCertificateViaOCSP​(java.security.cert.X509Certificate certificateToValidate,
                                                      java.util.Date validationDate,
                                                      java.lang.String idClient)
                                               throws SigningException
        Method that validates a certificate against an OCSP responder.
        Parameters:
        certificateToValidate - Parameter that represents the certificate to validate.
        validationDate - Parameter that represents the validation date.
        idClient - Parameter that represents the client application identifier.
        Throws:
        SigningException - If the method fails or the certificate isn't correct and valid.