I've wrote a standalone java SE software which executes, for example, the features A, B and C.
Now, i want to that, if a lock is enabled (and this lock is a command sent remotely by my backend), the feature C has not to be longer available for execution by the user.
This lock has to be persistent, so, it has to survive to a device reboot, for example.
Another requirement is that has to be secure, so, it cannot to be just a file nor an entry on a local DB nor anything that could be manipulable by an expert user.
What is the best solution for develop something like that?