A Java program has been developed and now its copies will be sold to customers.
Each client is given a unique key for the program.
Objective: to prevent the distribution of copies of the program without paying a license.
It is planned on the hosting to store data that the program must pick up in order for its algorithm to start.
Question: how to implement the exchange with the hosting so that the program receives data only in exchange for the paid key?