Class SSLUtil


  • public class SSLUtil
    extends java.lang.Object
    Some global helper functions.
    • Constructor Summary

      Constructors 
      Constructor Description
      SSLUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int buildMode()
      Return the build mode of the axTLS project.
      static void displayError​(int error_code)
      Display the text string of the error.
      static int getConfig​(int which)  
      static boolean hasPEM()
      Indicate if PEM is supported.
      static int maxCACerts()
      Return the number of CA certificates that the client/server supports.
      static int maxCerts()
      Return the number of chained certificates that the client/server supports.
      static java.lang.String version()
      Return the version of the axTLS project.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SSLUtil

        public SSLUtil()
    • Method Detail

      • getConfig

        public static int getConfig​(int which)
      • buildMode

        public static int buildMode()
        Return the build mode of the axTLS project.
        Returns:
        The build mode is one of: - SSL_BUILD_SERVER_ONLY - SSL_BUILD_ENABLE_VERIFICATION - SSL_BUILD_ENABLE_CLIENT - SSL_BUILD_FULL_MODE
      • maxCerts

        public static int maxCerts()
        Return the number of chained certificates that the client/server supports.
        Returns:
        The number of supported client/server certificates.
      • maxCACerts

        public static int maxCACerts()
        Return the number of CA certificates that the client/server supports.
        Returns:
        The number of supported CA certificates.
      • hasPEM

        public static boolean hasPEM()
        Indicate if PEM is supported.
        Returns:
        true if PEM supported.
      • displayError

        public static void displayError​(int error_code)
        Display the text string of the error. See ssl.h for the error code list.
        Parameters:
        error_code - [in] The integer error code.
      • version

        public static java.lang.String version()
        Return the version of the axTLS project.