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.
Following is the declaration for Java.io.SerializablePermission class −
public final class SerializablePermission extends BasicPermission
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. |
This class inherits methods from the following classes −