First of all, you can hardly stop the leak of information on the local computer. Of course, you can restrict access to the network and even a lot of access to the file system, but there is nothing that could stop the gui from popping up a dialog box showing the information to the user on the screen, or any other 100 ways you could βleak outβ , data.
Secondly, you continue to say that the policy file can be modified by the user. Yes. it looks like you are basically trying to recreate DRM. I would suggest reading DRM and general futility. This, in essence, boils down to giving someone a locked box and a key to the box and ordering them not to open it. If someone has physical access to your program, you can do almost nothing to prevent them from getting data from it, in java or almost any other programming language (at least not on computers, as they are built today) .
james
source share