public final class

NetPermission

extends BasicPermission
java.lang.Object
   ↳ java.security.Permission
     ↳ java.security.BasicPermission
       ↳ java.net.NetPermission

Class Overview

This class represents permissions to configure the access to 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

Summary

Public Constructors
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 an action list.
[Expand]
Inherited Methods
From class java.security.BasicPermission
From class java.security.Permission
From class java.lang.Object
From interface java.security.Guard

Public Constructors

public NetPermission (String name)

Creates an instance of this class with the given name.

Parameters
name the name of the new NetPermission instance.

public NetPermission (String name, String actions)

Creates an instance of this class with the given name and an action list. The action list is ignored and should be null.

Parameters
name the name of the new NetPermission instance.
actions the ignored action string.