java.net
Class NetPermission

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

public final class NetPermission
extends BasicPermission

This class is used to model miscellaneous network permissions. It is a subclass of 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:

See Also:
Serialized Form

Constructor Summary
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.
 
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

NetPermission

public NetPermission(String name)
Initializes a new instance of NetPermission with the specified name.

Parameters:
name - The name of this permission.

NetPermission

public NetPermission(String name,
                     String perms)
Initializes a new instance of 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.

Parameters:
name - The name of this permission
perms - The permitted actions of this permission (ignored)