-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
I created a small application based on licences mechanishm where i sent public key and license file with tool. Here application have check like
if(autheticateLicense()) // should work till Sep 06 2018
imageLoad();
else
JOptionPane.showMessageDialog(new JFrame(), "License Not Valid", "Error", JOptionPane.ERROR_MESSAGE);
/**
* Function to authenticate
*/
private static boolean autheticateLicense() {
boolean result=false;
LicenseManager licenseManager = LicenseManager.getInstance();
try
{
License license = licenseManager.getLicense();
result = licenseManager.isValidLicense(license);
}
catch (Exception e)
{
e.printStackTrace();
}
return result;
}
The licences i have made is valid upto Sep 06 2018 and after this date application should not work as per above check. I got an issue where if i change the date of my computer to back date e.g. Sep 04 2018 tool start working.
Metadata
Metadata
Assignees
Labels
No labels