FileDocCategorySizeDatePackage
NetPermission.javaAPI DocAndroid 1.5 API2258Wed May 06 22:41:04 BST 2009java.net

NetPermission

public final class NetPermission extends BasicPermission
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

see
java.security.BasicPermission
see
SecurityManager
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
Constructors Summary
public NetPermission(String name)
Creates an instance of this class with the given name.

param
name the name of the new NetPermission instance.
since
Android 1.0


                                           
       
        super(name);
    
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 {@code null}.

param
name the name of the new {@code NetPermission} instance.
param
actions the ignored action string.
since
Android 1.0

        super(name, actions);
    
Methods Summary