SoLockManager Class |
Sets the unlock string.
Namespace: OIV.Inventor.Lock
The SoLockManager type exposes the following members.
Name | Description | |
---|---|---|
AppendUnlockString | Appends to the existing unlock string the specified string. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUnlockString | Obsolete.
Returns the unlock string.
| |
SetUnlockString | Sets the unlock string. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
This class allows the application to set Master Password unlock strings programmatically.
Only Master Password unlock strings can be used with this class. Temporary and floating license strings have a different format. These license strings can be set, but will not unlock Open Inventor. They must be used with a license string file.
Master Password strings embedded in application code should be "obfuscated" to prevent them being easily extracted from the executable. The application should remove the obfuscation immediately before calling OIV.Inventor.Lock.SoLockManager.SetUnlockString(System.String).
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. Effectively OIV.Inventor.Lock.SoLockManager stores only a single string, so it is not possible 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.