title: How to prevent reflection access only to certain classes
body: <p>I am developing some licensing code, so I would like to avoid access to one or two classes through reflection.</p>
  
  <p>I have tried implement a SecurityManager but with no success.</p>
  
  <p>I found that another option would be to define my own policy file but that requires me to set it on JVM launch, and that defeats my purpose, I would like to be able to set either a SecurityManager that prevents access to the specific License classes, or a policy to do so in runtime.</p>