Build 1.0_r1(from source)

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 represents permission to access network resources.

There are three valid target names:

setDefaultAuthenticator
Allows the default authenticator to be set.
requestPasswordAuthentication
Allows the default authenticator to be retrieved.
specifyStreamHandler
Allows a stream (protocol) handler to be set when constructing an URL object

See Also:
BasicPermission, SecurityManager, Serialized Form

Constructor Summary
NetPermission(String name)
          Creates an instance of this class with the given name.
NetPermission(String name, String actions)
          Creates an instance of this class with the given name and action list.
 
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)
Creates an instance of this class with the given name.

Parameters:
name - String the name of the new permission.

NetPermission

public NetPermission(String name,
                     String actions)
Creates an instance of this class with the given name and action list. The action list is ignored.

Parameters:
name - String the name of the new permission.
actions - String ignored.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature