License4J Online License Key Floating Over Internet Example Application

This example use new validateOnlineLicenseKey and FloatingLicenseCheckTimerHandler.


validateOnlineLicenseKey

This the new method to validate online license key. It is simplified, date arguments removed. This method runs new FloatingLicenseCheckTimerHandler which also keeps updated License object when run. Server connection error handler, license invalid handler and license valid handler are all combined in a single FloatingLicenseCheckTimerHandler. This handler is run when there is a server connection error, license is valid or for any reason invalid.

Since FloatingLicenseCheckTimerHandler runs all events, and has License object, it is easy to call any method depending on license validation status.

See MyFloatingHandler.java


How To Run

URRQ9-6ZWF4-UQ5LE-QDKXB-S2QU3 This keys can be directly used, it is available on Online.License4J.
JVHLF-JBI7X-Z475B-3G2AD-J44CJ This has an expiration date.
TQFL4-4TDN7-5M2F6-FD2TQ-YVIYI This is an expired key to test.
6WFDI-X3CGD-LAANG-3UGMK-HIZWM This key max allowed use count is set to 10, and already reached.

To use your own key, generate, and finally, replace public key and productID with yours in LicenseInformationGUI.java file.