-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Comparable
public enum LibraryLoader.ModeLibrary loading mode controls which libraries are attempted to be loaded (installed in the system or bundledin the Lazysodium JAR) and in which order.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PREFER_SYSTEMTry to load the system sodium first, if that fails — load the bundled version.
This is the recommended mode, because it allows the clients to upgrade the sodium libraryas soon as it is available instead of waiting for lazysodium release and releasing a new version ofthe client library/application.
PREFER_BUNDLEDLoad the bundled native libraries first, then fallback to finding it in the system.
BUNDLED_ONLYLoad the bundled version, ignoring the system.
This mode might be useful if the system sodium turns out to be outdated and cannot be upgraded.
SYSTEM_ONLYLoad the system sodium only, ignoring the bundled.
This mode is recommended if it is required to use the system sodium only, and the applicationmust fail if it is not installed.
-
Method Summary
Modifier and Type Method Description static Array<LibraryLoader.Mode>values()static LibraryLoader.ModevalueOf(String name)-
-
Method Detail
-
values
static Array<LibraryLoader.Mode> values()
-
valueOf
static LibraryLoader.Mode valueOf(String name)
-
-
-
-