Class UtilsCRL


  • public final class UtilsCRL
    extends java.lang.Object

    Utilities class that provides functionality to manage and work with X.509 CRL.

    Project:

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

    Version:
    1.3, 19/09/2022.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.security.cert.X509CRL buildX509CRLfromByteArray​(byte[] crlByteArray)
      Builds a X.509 CRL from the input byte array.
      static java.security.cert.X509CRL buildX509CRLfromByteArray​(java.io.InputStream isCRL)
      Builds a X.509 CRL from the input stream.
      • Methods inherited from class java.lang.Object

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

      • buildX509CRLfromByteArray

        public static java.security.cert.X509CRL buildX509CRLfromByteArray​(byte[] crlByteArray)
                                                                    throws CommonUtilsException
        Builds a X.509 CRL from the input byte array.
        Parameters:
        crlByteArray - Byte array that represents a X.509 CRL.
        Returns:
        a X.509 CRL builded from the input byte array, or null if the input array is null or empty.
        Throws:
        CommonUtilsException - In case of some error building the X.509 CRL.
      • buildX509CRLfromByteArray

        public static java.security.cert.X509CRL buildX509CRLfromByteArray​(java.io.InputStream isCRL)
                                                                    throws CommonUtilsException
        Builds a X.509 CRL from the input stream. This method does not close the input stream.
        Parameters:
        isCRL - Input stream that represents a X.509 CRL.
        Returns:
        a X.509 CRL builded from the input stream, or null if the input stream is null.
        Throws:
        CommonUtilsException - In case of some error building the X.509 CRL.