public final class

ReflectPermission

extends BasicPermission
java.lang.Object
   ↳ java.security.Permission
     ↳ java.security.BasicPermission
       ↳ java.lang.reflect.ReflectPermission

Class Overview

A ReflectPermission object represents a permission to access operations in the reflection layer.

Summary

Public Constructors
ReflectPermission(String permissionName)
Constructs a new ReflectPermission instance with the specified name.
ReflectPermission(String name, String actions)
Constructs a new ReflectPermission instance with the specified name and action list.
[Expand]
Inherited Methods
From class java.security.BasicPermission
From class java.security.Permission
From class java.lang.Object
From interface java.security.Guard

Public Constructors

public ReflectPermission (String permissionName)

Since: API Level 1

Constructs a new ReflectPermission instance with the specified name.

Parameters
permissionName the name of the new permission
Throws
IllegalArgumentException if name is empty
NullPointerException if name is null

public ReflectPermission (String name, String actions)

Since: API Level 1

Constructs a new 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 name is empty
NullPointerException if name is null