Class SoLockManager

java.lang.Object
com.openinventor.inventor.lock.SoLockManager

public class SoLockManager extends Object
Sets the unlock string.

This class is used for setting the unlock string (also called "license string" or "password") programmatically. Master passwords and encrypted passwords must be specified via this mechanism.

If your application uses any of the Open Inventor extensions (e.g., MeshViz, VolumeViz, etc.), you will need to specify the necessary license strings using a colon-separated list or a newline-separated list. For encrypted passwords, you must use a newline-separated list. (Since SoLockManager stores only a single string, it would not work to make multiple calls, each specifying a single license string; each call would overwrite the previously specified value.)

You must set the unlock string before any other call to OpenInventor framework. This means the password string should typically be specified in your application's main.

  • Constructor Details

    • SoLockManager

      public SoLockManager()
  • Method Details

    • isNativeLoaded

      public static boolean isNativeLoaded()
      Internal use only.
    • loadLibrary

      public static void loadLibrary(String libname)
      Internal use only.
    • setUnlockString

      public static void setUnlockString(String string)
      Unlock the product by giving a valid license key as argument. This method should be called before any other call to Open Inventor Java. All the licenses to register must be concatenated in one string, with '\n' as separator.
    • getUnlockString

      @Deprecated(since="10.8") public static String getUnlockString()
      Deprecated.
      As of Open Inventor 10.8, this method should no longer be used. For security reasons, this method always returns null.
      Returns the unlock string.
    • appendUnlockString

      public static void appendUnlockString(String unlockString)
      Appends to the existing unlock string the specified string. In order for the unlock string to be valid, each feature described must be specified in a single line.