Integrate JLicensure Client in your application (1)
In order to perform a secure license validation, you must integrate some lines of licensing code into your application. If you're wondering why this is necessary or why the installation or application launcher system cannot perform the license validation for you, consider the following:
- If license validation is performed by the installation system only, it may still be possible to copy the installed application files to a different computer and execute the application without running the installation routines.
- If the license validation routines are separated from your application classes in a way that a license validation takes place only before the application's main method is called, it may be easier to circumvent the license validation by calling the main method directly.
- By injecting the license validation routines directly into your code you are free to define when and how a license is granted. For instance, you may grant individual licenses based on the program functions that are executed by the user.
- It is harder for a potential attacker to circumvent license validation if the licensing routines are called multiple times, possibly at different places in your application code. License validation is very fast after a license has been issued and backed up on the local machine.
- The very first license validation will request a license from the server over the Internet. Even though the transmission can be performed in the background (and probably should in a server-side non-UI application), you might not want to do this in a UI-driven application, because you don't want to perform data transmissions without notifying the user first. By integrating the license validation code into your application, you may use the JLicensure Client UI as a child of your own application window.
On the next page, you will learn how to include the JLicensure Client libraries into your application.








Send Article
Print


