SoLockManager Class Reference

VSG extension Sets the unlock string. More...

#include <Inventor/lock/SoLockMgr.h>

List of all members.

Static Public Member Functions

static void SetUnlockString (char *pUnlockString)
static char * GetUnlockString ()

Detailed Description

VSG extension Sets the unlock string.

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 SetUnlockString().

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 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 your call to SoXt::init, SoWin::init (Windows platforms only) or SoDB::init.

This means the password string should typically be specified in your application's main or WinMain .


Member Function Documentation

static char* SoLockManager::GetUnlockString (  )  [static]

Returns the unlock string.

static void SoLockManager::SetUnlockString ( char *  pUnlockString  )  [static]

Sets the unlock string.


SoLockManager makes a copy of the specified string, so it is not necessary to declare a static string.
To reclaim the memory allocated by SoLockManager (for example at program exit), simply call setUnlockString with NULL.


The documentation for this class was generated from the following file:

Open Inventor by FEI reference manual, generated on 30 Jul 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/