I am interested in creating a licence file which will authenticate the use of a Java application. The application will open showing a window if the licence is not found or is invalid. I also want to create a licence generator program which I can use (probably obvious) to create licence files. I have no idea how to do this, does anybody have direction as to where I should go or APIs I should be looking at? Thanks in advance.
P.S. I am not interesting is using this for a serious release of a product, I am generally interested in how they are created.