Class SoLockManager
- java.lang.Object
-
- com.openinventor.inventor.lock.SoLockManager
-
public class SoLockManager extends java.lang.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 Summary
Constructors Constructor Description SoLockManager()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
appendUnlockString(java.lang.String unlockString)
Appends to the existing unlock string the specified string.static java.lang.String
getUnlockString()
Deprecated.As of Open Inventor 10.8, this method should no longer be used.static boolean
isNativeLoaded()
Internal use only.static void
loadLibrary(java.lang.String libname)
Internal use only.static void
setUnlockString(java.lang.String string)
Unlock the product by giving a valid license key as argument.
-
-
-
Method Detail
-
isNativeLoaded
public static boolean isNativeLoaded()
Internal use only.
-
loadLibrary
public static void loadLibrary(java.lang.String libname)
Internal use only.
-
setUnlockString
public static void setUnlockString(java.lang.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 java.lang.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(java.lang.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.
-
-