• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

security licence in java

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi m currently working on java security application..can you tell me how we set specific period of time for expiry of that software..ex 30 days or one year..
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

What is a "security application"? Is it a desktop app, a web app or something else?
 
ashish jadhav
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ulf Dittmer,
Its a desktop application.
 
ashish jadhav
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Actully m working on java security appication. Customer key will be generated when the Setup program is run on the Customer side. The key will be generated from the MAC Address of the Network Card. When Customer Key is provide we will generated Product key.now i want help that how we allow for licenses to be generated for a set period of time in same code???
 
Ulf Dittmer
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure if it supports time-limited licenses, but check out the https://truelicense.dev.java.net/ project.
 
ashish jadhav
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ulf i done code for java security licence.actully i created one program through which we can create one file called licece.obj, which contains current system date.i want to call this program at time of installation.and i also created one code that check whenever application runs,it will compare and check this licence file date.if number of days more than 30 program shows mssage"Please Registor application".and if number of days less than 30 appliction will forward.can you please tell me how i call this code from my security appication???
 
Ulf Dittmer
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure what you mean by "i also created one code", but if it's a Java class, where is the problem in instantiating and using it?
 
ashish jadhav
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
that means i created one datevalidator.java file which help us create to License file. At the time of installation i want to call this file.There is one more file authenticate.java , which take current date and compares with the license file date.

Whenever we run security application i want to call authenticate.java file.

Please can you advise how we can do this ?

Many thanks,
Ashish
 
Ulf Dittmer
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can't you distribute those classes with the application? Or do they contain the full security algorithms that could be used to subvert the license scheme if patched?
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

Is any other generic mechanism through which the same can be achieved or application specific code needs to be written.

What is the best way to achieve such logic in the system ?


Thanks,
 
Rancher
Posts: 4686
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This sounds to me like you want to implement a DRM. Lots of luck with that, as many have tried and all have failed.

Just so you know, a MAC address is not fixed.

The only way to keep software secure is to keep it. Don't distribute it, run it on your server. Once you give the .jar to someone, its over.
reply
    Bookmark Topic Watch Topic
  • New Topic