public final class NetPermission extends BasicPermission
BasicPermission
. This means that it models a
"boolean" permission. One that you either have or do not have. Thus
there is no permitted action list associated with this object.
The following permission names are defined for this class:
Constructor and Description |
---|
NetPermission(String name)
Initializes a new instance of
NetPermission with the
specified name. |
NetPermission(String name,
String perms)
Initializes a new instance of
NetPermission with the
specified name and perms. |
equals, getActions, hashCode, implies, newPermissionCollection
checkGuard, getName, toString
public NetPermission(String name)
NetPermission
with the
specified name.name
- The name of this permission.public NetPermission(String name, String perms)
NetPermission
with the
specified name and perms. Note that the perms field is irrelevant and is
ignored. This constructor should never need to be used.name
- The name of this permissionperms
- The permitted actions of this permission (ignored)