The Javascript client side library is located in this folder: %Public%\Documents\Quick License Manager\Samples\qlmenterprise\Javascript\electron-sample\qlmLicense
There are 5 files: QlmCustomer.js, QlmHardware.js, QlmLicense.js, QlmProduct.js and QlmRsaCrypt.js
The client side library performs the license validation, activation, decryption, etc. You typically do not need to change any code in this package. The QlmLicense class in this package is the main class you need to interfact with. The most common methods of this class are document in the help under "Quick License Manager Enterprise / Non-Windows Platforms / Mobile Devices API".
Use the QLM Management Console to create an Activation Key from the Manage Keys tab.
When the user launches your app for the first time, prompt the user to enter an Activation Key.
Once the user enters the Activation Key, your application should call the QlmLicense.ActivateLicense method. If activation is successful, encrypted license information is stored on the system (license file). QLM uses RSA asymmetric encryption to store license information on the system. The RSA public/private key pair is automatically generated by QLM when you define a product in the QLM Application Define Products page. The keys are displayed on the Encryption Keys tab / Mobile Devices Encryption. You will need to include the Public Key in your code.
Once the license file is stored on the end user system, the next time the application is launched, your application should just read the license file and validate it by calling QlmLicense.ValidateLicense.
You can take a look at the main.js file for an example on how an Electron app uses the Javascript client side library.
Comments
0 comments
Please sign in to leave a comment.