Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.net

Class NetPermission

java.lang.Object
|
+--java.security.Permission
   |
   +--java.security.BasicPermission
      |
      +--java.net.NetPermission


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.

Author:

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 value.

Constructor Details

NetPermission

public NetPermission(java.lang.String name)

Initializes a new instance of NetPermission with the specified name.

Parameters:


NetPermission

public NetPermission(java.lang.String name, java.lang.String perms)

Initializes a new instance of NetPermission with the specified name and value. Note that the value field is irrelevant and is ignored. This constructor should never need to be used.

Parameters: