java.io
Class SerializablePermission

java.lang.Object
  extended by java.security.Permission
      extended by java.security.BasicPermission
          extended by java.io.SerializablePermission
All Implemented Interfaces:
Serializable, Guard

public final class SerializablePermission
extends BasicPermission

This class models permissions related to serialization. As a subclass of BasicPermission, this class has permissions that have a name only. There is no associated action list.

There are currently two allowable permission names for this class:

See Also:
BasicPermission, Serialized Form

Constructor Summary
SerializablePermission(String name)
          This method initializes a new instance of SerializablePermission that has the specified name.
SerializablePermission(String name, String actions)
          This method initializes a new instance of SerializablePermission that has the specified name and action list.
 
Method Summary
 
Methods inherited from class java.security.BasicPermission
equals, getActions, hashCode, implies, newPermissionCollection
 
Methods inherited from class java.security.Permission
checkGuard, getName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SerializablePermission

public SerializablePermission(String name)
This method initializes a new instance of SerializablePermission that has the specified name.

Parameters:
name - The name of the permission.
Throws:
IllegalArgumentException - If the name is not valid for this class.

SerializablePermission

public SerializablePermission(String name,
                              String actions)
This method initializes a new instance of SerializablePermission that has the specified name and action list. Note that the action list is unused in this class.

Parameters:
name - The name of the permission.
actions - The action list (unused).
Throws:
IllegalArgumentException - If the name is not valid for this class.