APIdia Launch Partner
Top Description Fields Constructors Methods
java.io

public final Class SerializablePermission

extends BasicPermission
Class Inheritance
Annotations
@Deprecated
since:25
forRemoval:true
Imports
java.security.BasicPermission, java.util.Enumeration, .Hashtable, .StringTokenizer

Deprecated

for removal since 25.

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

This class is for Serializable permissions. A SerializablePermission contains a name (also referred to as a "target name") but no actions list; you either have the named permission or you don't.
Author
Joe Fialli
Since
1.2
See Also
java.security.BasicPermission, java.security.Permission, java.security.Permissions, java.security.PermissionCollection

Field Summary

Modifier and TypeField and Description
private String
private static final long

Constructor Summary

AccessConstructor and Description
public
SerializablePermission(String
the name of the SerializablePermission.
name
)

Creates a new SerializablePermission with the specified name.

public
SerializablePermission(String
the name of the SerializablePermission.
name
,
String
currently unused and must be set to null
actions
)

Creates a new SerializablePermission object with the specified name.

Method Summary

Inherited from java.security.BasicPermission:
equalsgetActionshashCodeimpliesnewPermissionCollection

Field Detail

actionsback to summary
private String actions
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.BasicPermission.serialVersionUID.

Annotations
@Serial

Constructor Detail

SerializablePermissionback to summary
public SerializablePermission(String name)

Creates a new SerializablePermission with the specified name. The name is the symbolic name of the SerializablePermission, such as "enableSubstitution", etc.

Parameters
name:String

the name of the SerializablePermission.

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

Creates a new SerializablePermission object with the specified name. The name is the symbolic name of the SerializablePermission, and the actions String is currently unused and should be null.

Parameters
name:String

the name of the SerializablePermission.

actions:String

currently unused and must be set to null

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