Run your application using a SecurityManager
and a sufficiently restrictive security policy.
There’s a short summary in the tutorial and extensive information in the security documentation.
More Related Contents:
- How to limit setAccessible to only “legitimate” uses?
- How do I access private methods and private data members via reflection?
- What is the security risk of object reflection?
- Disable Java reflection for the current thread
- How to disable Java security manager?
- What is the difference between instanceof and Class.isAssignableFrom(…)?
- At runtime, find all classes in a Java application that extend a base class
- Handling passwords used for auth in source code
- Determining if an Object is of primitive type
- Java – Get a list of all Classes loaded in the JVM
- Get variable by name from a String
- Reflection generic get field value
- Access to private inherited fields via reflection in Java
- Faster alternatives to Java’s reflection [closed]
- Java Error: “Your security settings have blocked a local application from running”
- Getting the name of a method parameter
- Creating classes dynamically with Java
- How do I intercept a method invocation with standard java features (no AspectJ etc)?
- java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty on Linux, or why is the default truststore empty [duplicate]
- Using NTLM authentication in Java applications
- How do I invoke a private static method using reflection (Java)?
- How do I generate a SALT in Java for Salted-Hash?
- Instantiate private inner class with java reflection
- How to get string name of a method in java?
- Retrieve only static fields declared in Java class
- Too much data for RSA block fail. What is PKCS#7?
- How can I determine the type of a generic field in Java?
- How to watch a variable for changes
- How to check if class exists somewhere in package?
- How are the IV and authentication tag handled for “AES/GCM/NoPadding”?