Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Truelicense Java preferences store other than registry

For managing the license in my Java application, I want to use truelicense.

Truelicense is using Java Preferences to store license keys and Java preferences on windows OS getting stored in Registry under user root or system root.

But my requirement is different. I want to install my application in USB storage and want to allow application access from that USB device only (from any machine). So, I can't use registry to store the license key.

Is there any other way to store Java preferences like file based or any other. And which is the most secure way.

Is truelicense supports storage other than Preferences?

like image 729
Niraj Chapla Avatar asked Dec 05 '25 13:12

Niraj Chapla


1 Answers

By default Java preferences are getting stored in registry on windows platform. Alternative of the registry is to story preferences in file.

File based preferences can be used for truelicense. Following is the link showing how to implement file based java preferences.

http://www.davidc.net/programming/java/java-preferences-using-file-backing-store

Hope, this will be useful in your case.

like image 174
user2845060 Avatar answered Dec 11 '25 18:12

user2845060



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!