public final class SecurityPermission extends BasicPermission
Constructor and Description |
---|
SecurityPermission(String name)
Creates a new SecurityPermission with the specified name.
|
SecurityPermission(String name,
String actions)
Creates a new SecurityPermission object with the specified name.
|
public SecurityPermission(String name)
name
- the name of the SecurityPermissionNullPointerException
- if name
is null
.IllegalArgumentException
- if name
is empty.public SecurityPermission(String name, String actions)
name
- the name of the SecurityPermissionactions
- should be null.NullPointerException
- if name
is null
.IllegalArgumentException
- if name
is empty.