Package org.apache.commons.crypto
Class OpenSslInfoNative
java.lang.Object
org.apache.commons.crypto.OpenSslInfoNative
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
DLLName()
Return the name used to load the dynamic linked library.static String
DLLPath()
Return the path to the loaded dynamic linked library.static String
static String
static String
static long
OpenSSL()
static String
OpenSSLVersion
(int type) Returns OpenSSL_version according the version type.
-
Constructor Details
-
OpenSslInfoNative
private OpenSslInfoNative()Makes the constructor private.
-
-
Method Details
-
DLLName
Return the name used to load the dynamic linked library.- Returns:
- the name used to load the library (e.g. crypto.dll)
-
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
- Returns:
- name of native
-
NativeTimeStamp
- Returns:
- timestamp of native
-
NativeVersion
- Returns:
- version of native
-
OpenSSL
public static long OpenSSL()- Returns:
- the value of OPENSSL_VERSION_NUMBER.
-
OpenSSLVersion
Returns OpenSSL_version according the version type.- Parameters:
type
- The version type- Returns:
- The text variant of the version number and the release date.
-