Java.io.SerializablePermission Class


Advertisements

Introduction

The Java.io.SerializablePermission 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.The target name is the name of the Serializable permission.

Class declaration

Following is the declaration for Java.io.SerializablePermission class −

public final class SerializablePermission
   extends BasicPermission

Class constructors

Sr.No. Constructor & Description
1

SerializablePermission(String name)

This creates a new SerializablePermission with the specified name.

2

SerializablePermission(String name, String actions)

This creates a new SerializablePermission object with the specified name.

Methods inherited

This class inherits methods from the following classes −

  • Java.io.BasicPermission
  • Java.io.Permission
  • Java.io.Object
Advertisements