Click or drag to resize
SoLockManager Class

Sets the unlock string.

Inheritance Hierarchy
SystemObject
  OIV.InventorSoNetBase
    OIV.Inventor.LockSoLockManager

Namespace: OIV.Inventor.Lock
Assembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public sealed class SoLockManager : SoNetBase

The SoLockManager type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAppendUnlockString

Appends to the existing unlock string the specified string.

Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberGetUnlockString Obsolete.
Returns the unlock string.
Public methodStatic memberSetUnlockString

Sets the unlock string.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

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 must 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).

You must also ensure that the master password is not readable in the files you redistribute.

If your application uses any of the Open Inventor extensions (e.g., MeshViz, VolumeViz, etc.), you must 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 each call to the method SetUnlockString after the first one overwrites the previously specified value. You must use the AppendUnlockString method to add additional license strings after the initial call to SetUnlockString.

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.

See Also