Class OpenSslInfoNative

java.lang.Object
org.apache.commons.crypto.OpenSslInfoNative

final class OpenSslInfoNative extends Object
JNI interface of CryptoRandom implementation for OpenSSL. The native method in this class is defined in OpenSslCryptoRandomNative.h (generated at build time by javah) and implemented in the file src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c
  • Constructor Details

    • OpenSslInfoNative

      private OpenSslInfoNative()
      Makes the constructor private.
  • Method Details

    • DLLName

      public static String DLLName()
      Return the name used to load the dynamic linked library.
      Returns:
      the name used to load the library (e.g. crypto.dll)
    • DLLPath

      public static String DLLPath()
      Return the path to the loaded dynamic linked library. [Currently not implemented on Windows]
      Returns:
      the path to the library that was loaded; may be null.
    • NativeName

      public static String NativeName()
      Returns:
      name of native
    • NativeTimeStamp

      public static String NativeTimeStamp()
      Returns:
      timestamp of native
    • NativeVersion

      public static String NativeVersion()
      Returns:
      version of native
    • OpenSSL

      public static long OpenSSL()
      Returns:
      the value of OPENSSL_VERSION_NUMBER.
    • OpenSSLVersion

      public static String OpenSSLVersion(int type)
      Returns OpenSSL_version according the version type.
      Parameters:
      type - The version type
      Returns:
      The text variant of the version number and the release date.