APIdia Launch Partner
Top Description Fields Constructors Methods
java.lang.reflect

public final Class ReflectPermission

extends BasicPermission
Class Inheritance
Annotations
@Deprecated
since:25
forRemoval:true

Deprecated

for removal since 25.

This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.

The Permission class for reflective operations.
Since
1.2
See Also
java.security.Permission, java.security.BasicPermission, AccessibleObject

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
ReflectPermission(String
the name of the ReflectPermission
name
)

Constructs a ReflectPermission with the specified name.

public
ReflectPermission(String
the name of the ReflectPermission
name
,
String
should be null
actions
)

Constructs a ReflectPermission with the specified name and actions.

Method Summary

Inherited from java.security.BasicPermission:
equalsgetActionshashCodeimpliesnewPermissionCollection

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.BasicPermission.serialVersionUID.

Annotations
@Serial

Constructor Detail

ReflectPermissionback to summary
public ReflectPermission(String name)

Constructs a ReflectPermission with the specified name.

Parameters
name:String

the name of the ReflectPermission

Exceptions
NullPointerException:
if name is null.
IllegalArgumentException:
if name is empty.
ReflectPermissionback to summary
public ReflectPermission(String name, String actions)

Constructs a ReflectPermission with the specified name and actions. The actions should be null; they are ignored.

Parameters
name:String

the name of the ReflectPermission

actions:String

should be null

Exceptions
NullPointerException:
if name is null.
IllegalArgumentException:
if name is empty.