|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.Permission
java.security.BasicPermission
java.lang.reflect.ReflectPermission
public final class ReflectPermission
This class implements permissions for reflection. This is a named permission, and the only defined name is suppressAccessChecks, which allows suppression of normal Java objects when using reflection.
Permission Target Name | What Permission Allows | Risk of Allowing Permission |
---|---|---|
suppressAccessChecks |
Ability to access fields, invoke methods, and construct objects via reflection, including non-public members in contexts where such access is not legal at compile-time. | This is dangerous. It exposes possibly confidential information, and malicious code could interfere with the internals of the Virtual Machine by corrupting private data. |
Constructor Summary | |
---|---|
ReflectPermission(String name)
Construct a ReflectPermission with the given name. |
|
ReflectPermission(String name,
String actions)
Construct a ReflectPermission with the given name. |
Method Summary |
---|
Methods inherited from class java.security.BasicPermission |
---|
equals, getActions, hashCode, implies, newPermissionCollection |
Methods inherited from class java.security.Permission |
---|
checkGuard, getName, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReflectPermission(String name)
name
- The permission namepublic ReflectPermission(String name, String actions)
name
- The permission nameactions
- The actions; this is ignored and should be null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |