Package org.drasyl.crypto.loader
Class LibraryLoader
java.lang.Object
org.drasyl.crypto.loader.LibraryLoader
Helper class to load the libsodium library from the preferred location.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
void
loadLibrary
(String mode, String systemFallBack) void
loadSystemLibrary
(String library)
-
Field Details
-
PREFER_SYSTEM
- See Also:
-
PREFER_BUNDLED
- See Also:
-
BUNDLED_ONLY
- See Also:
-
SYSTEM_ONLY
- See Also:
-
-
Constructor Details
-
LibraryLoader
-
-
Method Details
-
getSodiumPlatformDependentPath
-
getSodiumPathInResources
- Throws:
IOException
-
loadSystemLibrary
- Throws:
IOException
-
loadLibrary
- Throws:
IOException
-