Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.lang.reflect

Class ReflectPermission

java.lang.Object
|
+--java.security.Permission
   |
   +--java.security.BasicPermission
      |
      +--java.lang.reflect.ReflectPermission


public final class ReflectPermission

extends 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:Authors:

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.

Constructor Details

ReflectPermission

public ReflectPermission(java.lang.String name)

Construct a ReflectPermission with the given name.

Parameters:


ReflectPermission

public ReflectPermission(java.lang.String name, java.lang.String actions)

Construct a ReflectPermission with the given name.

Parameters: