Package org.apache.commons.crypto
Class OpenSslInfoNative
- java.lang.Object
-
- org.apache.commons.crypto.OpenSslInfoNative
-
final class OpenSslInfoNative extends java.lang.Object
JNI interface ofCryptoRandom
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 Summary
Constructors Modifier Constructor Description private
OpenSslInfoNative()
Makes the constructor private.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
DLLName()
Return the name used to load the dynamic linked library.static java.lang.String
DLLPath()
Return the path to the loaded dynamic linked library.static java.lang.String
NativeName()
static java.lang.String
NativeTimeStamp()
static java.lang.String
NativeVersion()
static long
OpenSSL()
static java.lang.String
OpenSSLVersion(int type)
Returns OpenSSL_version according the version type.
-
-
-
Method Detail
-
DLLName
public static java.lang.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 java.lang.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 java.lang.String NativeName()
- Returns:
- name of native
-
NativeTimeStamp
public static java.lang.String NativeTimeStamp()
- Returns:
- timestamp of native
-
NativeVersion
public static java.lang.String NativeVersion()
- Returns:
- version of native
-
OpenSSL
public static long OpenSSL()
- Returns:
- the value of OPENSSL_VERSION_NUMBER.
-
OpenSSLVersion
public static java.lang.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.
-
-