• Post Reply Bookmark Topic Watch Topic
  • New Topic

License verification  RSS feed

 
Abhishek Reddy
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one guide me how to validate the license?

Iam trying to implement some x period license verification implementation

1. Can anyone guide me how to implement this functionality?

2. One way is... taking the date of issue and calculate end of date based on x period and validate accordingly........ it worked perfectly, but the problem is once the validity period is over and if i change the system date to valid date, its working.....but this is not supposed to happen

3. Can you guide me how to solve the above mentioned problem?

Also let me know is there any other best ways of implementuing this?

thanks in advance...
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abhishek Reddy wrote:
1. Can anyone guide me how to implement this functionality?

This depends upon the type of license you're validating, there are various parameters which make up the valid license, like name, address, licenses fixed format number and of course expiry date, So valid this ..

Abhishek Reddy wrote:
2. One way is... taking the date of issue and calculate end of date based on x period and validate accordingly........ it worked perfectly, but the problem is once the validity period is over and if i change the system date to valid date, its working.....but this is not supposed to happen

Usually user didn't suppose to play with system date and If you are making it as a web apps then server date can't changed by user..



 
Abhishek Reddy
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the reply.....

Usually user didn't suppose to play with system date and If you are making it as a web apps then server date can't
changed by user..

Mine is not a webapplication.....
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See http://faq.javaranch.com/java/JavaIntermediateFaq#licensing for two software products that help with this.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The one solution to get the valid date whenever you want, no matter whether user changed system date or not, is to instantiate an Timer class, which holds the valid system date, when application started and update it by every minute/hours.

This is not at all good solution, but nothing coming into my mind right now, May be little Googling Get the correct system Date + Javawill help
 
Abhishek Reddy
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Ulf Dittmer for the reply..

Actually iam using TrueLicense for my application...

It worked perfectly, but the problem is once the validity period is over and if i change the system date to valid date, its working.....which is not supposed to happen

 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, somehow I missed that part. I wouldn't worry about users changing the system date. Whoever is willing to go to that much trouble to avoid paying for the application probably wouldn't pay for it no matter what; so you're most likely not losing a sale.

Another option would be to limit the number of applications runs to some fixed number (maybe 30 or so). If you store that number in a non-obvious place using the Preferences API (or in a hidden file somewhere) it would be a hassle to find and remove that, too.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!