Package io.netty.internal.tcnative
Class Library
- java.lang.Object
-
- io.netty.internal.tcnative.Library
-
public final class Library extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
initialize()
static boolean
initialize(String libraryName, String engine)
Setup native library.
-
-
-
Method Detail
-
initialize
public static boolean initialize() throws Exception
- Returns:
true
if initialization was successful- Throws:
Exception
- if an error happens during initialization
-
initialize
public static boolean initialize(String libraryName, String engine) throws Exception
Setup native library. This is the first method that must be called!- Parameters:
libraryName
- the name of the library to loadengine
- Support for external a Crypto Device ("engine"), usually- Returns:
true
if initialization was successful- Throws:
Exception
- if an error happens during initialization
-
-