Package org.apache.commons.crypto.jna
Class OpenSslJna
java.lang.Object
org.apache.commons.crypto.jna.OpenSslJna
Provides access to package protected class objects and a
main(String[])
method that prints version information.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static void
Logs debug messages.static Class
<? extends CryptoCipher> static Class
<? extends CryptoRandom> private static void
Logs info-level messages.static Throwable
static boolean
static void
(package private) static String
OpenSSLVersion
(int type) Retrieves version/build information about OpenSSL library.
-
Field Details
-
KEY_DEBUG
- See Also:
-
-
Constructor Details
-
OpenSslJna
public OpenSslJna()
-
-
Method Details
-
debug
Logs debug messages.- Parameters:
format
- SeeString.format(String, Object...)
.args
- SeeString.format(String, Object...)
.
-
getCipherClass
- Returns:
- The cipher class of JNA implementation
-
getRandomClass
- Returns:
- The random class of JNA implementation
-
info
Logs info-level messages.- Parameters:
format
- SeeString.format(String, Object...)
.args
- SeeString.format(String, Object...)
.
-
initialisationError
- Returns:
- the error of JNA
-
isEnabled
public static boolean isEnabled()- Returns:
- true if JNA native loads successfully
-
main
- Throws:
Throwable
-
OpenSSLVersion
Retrieves version/build information about OpenSSL library.- Parameters:
type
- type can be OPENSSL_VERSION, OPENSSL_CFLAGS, OPENSSL_BUILT_ON...- Returns:
- A pointer to a constant string describing the version of the OpenSSL library or giving information about the library build.
-