I am creating a web app which needs licensing logic. For now only a very basic logic is needed:
At time of login check if license file exists
If license file does not exist (first time login) user will be prompted to enter a product key (user will contact me and the product key will be generated by me)
The product key will be decrypted and the decrypted values will be used to generate the license file.
After this each time the user logs in, the license file will be checked if it is valid.
The question I am having is, since it is a web app, where should the license file be generated? Should it be in src/main/resources
? Or should it be directly generated in somewhere like target/classes/
?
Also it is a Maven Project if that information is required
Thank you
UPDATE: Apologize for the confusion but... The app is built and the war is deployed on a tomcat server on a client's server machine. The question is, very simply put, where should the license file be stored on a web app