Application System Security

To protect application systems developed basing on Foresight Analytics Platform, the application features are used. The feature protects in two directions:

Protecting Application System Source Codes From Editing by End User.

To protect source codes of application system from editing , one application feature is allocated.

To get application feature and protect source codes of application system:

  1. Determine a name of application feature. The name must consist of digits and Latin letters without spaces in the range ASCII 32-127. Name length must not be more than 24 characters.

  2. Send request to technical support to support@fsight.ru to request an application feature.In the request determine the purpose of application feature use and created name of the feature.After that, the technical support prepares and provides you an application feature with the lsinit.exe specific utility that activates the use of application feature.

IMPORTANT. The obtained feature is not sent to the end users.

  1. Execute steps to protect repository object from editing obtained application feature.

  2. After the application system is developed, build the lsinit.exe utility start in the installation process, if the application system is installed with the installer. If the system is installed in a different way, before its use start the lsinit.exe utility one time at each workplace of the developer.Start the utility under the user who has administrator permissions. The utility does not have interface and does not return messages about executed result.

After those actions, the source codes of application system will be protected from editing by the end user.

Protecting Application System Use

The whole application system can be protected, one application feature is allocated to it. If it is available in application system to separate functional blocks, then to protect each of them it is recommended to use an application feature per block.

To get application features and protect application system use:

  1. Select the functional blocks in the application system, which will be licensed separately. A functional block may include either one procedure, or several Foresight Analytics Platform development environment units.

  2. Determine a set of application features. Create names of application licensing units and map them with selected functional blocks. The names must consist of digits and Latin letters without spaces in the range ASCII 32-127. Name length must not be more than 24 characters.

  3. Send request to technical support to support@fsight.ru to request application features.In the request determine the purpose of application features use and created features names.After that, the technical support prepares and provides you application features with the lsinit.exe specific utility that activates the use of application features.

  4. Add checking if there is a license for application feature for each functional block by means of the RequestLicense method. Add links to the Forms, Host, Ui system assemblies. Place the Button component with the Button1 name on the form. Set OnClick event handler for the Button1 component and execute the example without debugging:

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    LicManager: ILicenseManager;
    Feature: String;
    Lic: ILicense;
    StatusCode: UiLicenseStatusCode;
    Settings: IUiLicenseRequestSettings;
Begin
    LicManager := WinApplication.Instance.LicenseManager;
    Feature := "
ApplicationFeature";
    Settings := New UiLicenseRequestSettings.Create;
    Settings.ShowActivationWizard := True;
    StatusCode := LicManager.RequestLicense(Feature, Lic, Settings);
    If StatusCode = UiLicenseStatusCode.Success Then
        Lic.LicenseUpdate;
    Else
        // licensing errors processing
        //...
    End If;
    //Working with licensed block
    //...
    //After work is finished, check in license
    If Lic <> Null Then
        Lic.LicenseRelease;
    End If;
End Sub Button1OnClick;

On clicking the button the ApplicationFeature feature will be requested. If the feature is not available, the Activation of Unit dialog box opens.

NOTE. To check license for an application feature in the web application, call the and LicenseRelease methods via the web service using the ForeExec operation.

  1. Embed startup of the lsinit.exe utility into the application installation, if it is installed by means of installer. If the application system is installed differently, before using it start the lsinit.exe utility once at each workstation. Start the utility under the user who has administrator permissions. The utility does not have interface and does not return messages about executed result.

  2. Install an application system on customer's premises.

NOTE. To avoid modification of the application system source code, use the Standard distribution file at the customer side or allocate one application feature for it.

  1. Get the license with parameters of application development use for customer via technical support support@fsight.ru: the number of simultaneously working users, the period of application development use and other license parameters.

  2. Activate Foresight Analytics Platform and the application system on the customer's premises using the obtained license. To activate the desktop application by means of stand-alone license, use Foresight Analytics Platform activation wizard. To use the network license, install license server, if required, determine license search settings.

After executing the actions, when the application system is running, it will check whether there are valid licenses by predefined and application features.

See also:

Activation of Foresight Analytics Platform | Unit Activation | License Server and Features of Its Use