java.lang.reflect
public final class: ReflectPermission [javadoc |
source]
java.lang.Object
java.security.Permission
java.security.BasicPermission
java.lang.reflect.ReflectPermission
All Implemented Interfaces:
Serializable, Guard
A {@code ReflectPermission} object represents a permission to access
operations in the reflection layer.
| Constructor: |
public ReflectPermission(String permissionName) {
super(permissionName);
}
Constructs a new {@code ReflectPermission} instance with the specified
name. Parameters:
permissionName -
the name of the new permission
Throws:
IllegalArgumentException -
if {@code name} is empty
NullPointerException -
if {@code name} is {@code null}
|
public ReflectPermission(String name,
String actions) {
super(name, actions);
}
Constructs a new {@code ReflectPermission} instance with the specified
name and action list. The action list will be ignored. Parameters:
name -
the name of the new permission
actions -
this parameter will be ignored
Throws:
IllegalArgumentException -
if {@code name} is empty
NullPointerException -
if {@code name} is {@code null}
|
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |