Skip to content

licence Not working if Play with PC Date #5

@deekumar1211

Description

@deekumar1211

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions