java.net
Class NetPermission

java.lang.Object
java.security.Permission
java.security.BasicPermission
java.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:
- setDefaultAuthenticator - Grants the ability to install a facility
to collect username and password information when requested by a
web site or proxy server.
- requestPasswordAuthentication - Grants the ability to ask the
authentication facility for the user's password.
- specifyStreamHandler - Grants the permission to specify the
stream handler class used when loading from a URL.
| Fields inherited from class java.security.Permission |
|
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
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.