Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.lang.reflect
Class ReflectPermission  view ReflectPermission download ReflectPermission.java

java.lang.Object
  extended byjava.security.Permission
      extended byjava.security.BasicPermission
          extended byjava.lang.reflect.ReflectPermission
All Implemented Interfaces:
java.security.Guard, java.io.Serializable

public final class ReflectPermission
extends java.security.BasicPermission

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.

Since:
1.2

Nested Class Summary
 
Nested classes inherited from class java.security.BasicPermission
 
Field Summary
private static long serialVersionUID
          Compatible with JDK 1.2.
 
Fields inherited from class java.security.Permission
 
Constructor Summary
ReflectPermission(java.lang.String name)
          Construct a ReflectPermission with the given name.
ReflectPermission(java.lang.String name, java.lang.String actions)
          Construct a ReflectPermission with the given name.
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Compatible with JDK 1.2.

See Also:
Constant Field Values
Constructor Detail

ReflectPermission

public ReflectPermission(java.lang.String name)
Construct a ReflectPermission with the given name.


ReflectPermission

public ReflectPermission(java.lang.String name,
                         java.lang.String actions)
Construct a ReflectPermission with the given name.