Package 

Enum LibraryLoader.Mode

  • All Implemented Interfaces:
    java.io.Serializable , java.lang.Comparable

    
    public enum LibraryLoader.Mode
    
                        

    Library 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_SYSTEM

      Try 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_BUNDLED

      Load the bundled native libraries first, then fallback to finding it in the system.

      BUNDLED_ONLY

      Load 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_ONLY

      Load 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.