I have been looking into how to do some licensing using Java. I do not really know much about licensing so I began doing some basic research and came across the truelicense.jar, so I've been working mainly with that. I have been able to get some relative success, I've created the private/public key stores which is used to generate/validate the Licenses, however I've come across a problem and was wondering if anyone had any ideas.
A little background: My application has different levels which can be used and they are all turned on/off based on what's set in the License.
My problem: I would like the ability to create "Temporary" licenses which enable some aspects of the application without overriding the "Permanent" license they might or might not have already installed. It seems like the license overrides the existing license on the system, so I've tried creating separate Stores to generate/validate the "Temporary" licenses, but they are still overriding the permanent ones. I'm thinking there has to be a way to do this, but since I'm not that familiar with the process(I have been going off basic tutorials I've come across), I must be missing someting.
Does anyone have any suggestions/ideas how I might be able to do this? If you need more information, I'll be glad to give it to you.
Any help would be greatly appreciated, I've already spent a couple days on this.
Nevermind solved it.
Was using the same Preferences for both types inside the LicenseParam.