Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.net
Class NetPermission  view NetPermission download NetPermission.java

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

public final class NetPermission
extends java.security.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:


Nested Class Summary
 
Nested classes inherited from class java.security.BasicPermission
 
Field Summary
(package private) static long serialVersionUID
           
 
Fields inherited from class java.security.Permission
 
Constructor Summary
NetPermission(java.lang.String name)
          Initializes a new instance of NetPermission with the specified name.
NetPermission(java.lang.String name, java.lang.String perms)
          Initializes a new instance of NetPermission with the specified name and perms.
 
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
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

NetPermission

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


NetPermission

public NetPermission(java.lang.String name,
                     java.lang.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.