java.io
public final class SerializablePermission extends BasicPermission
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:
enableSubclassImplementation
- Allows a subclass to
override the default serialization behavior of objects.enableSubstitution
- Allows substitution of one object
for another during serialization or deserialization.BasicPermission
,
Serialized FormConstructor and Description |
---|
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. |
equals, getActions, hashCode, implies, newPermissionCollection
checkGuard, getName, toString
public SerializablePermission(String name)
SerializablePermission
that has the specified name.name
- The name of the permission.IllegalArgumentException
- If the name is not valid for
this class.public SerializablePermission(String name, String actions)
SerializablePermission
that has the specified name and action list. Note that the action list
is unused in this class.name
- The name of the permission.actions
- The action list (unused).IllegalArgumentException
- If the name is not valid for
this class.