FileDocCategorySizeDatePackage
SQLPermission.javaAPI DocAndroid 1.5 API2363Wed May 06 22:41:06 BST 2009java.sql

SQLPermission

public final class SQLPermission extends BasicPermission implements Serializable, Guard
A Permission relating to security access control in the {@code java.sql} package.

Currently, the only permission supported has the name " {@code setLog}". The {@code setLog} permission controls whether a Java application or applet can open a logging stream using the {@code DriverManager.setLogWriter} method or the {@code DriverManager.setLogStream} method. This is a potentially dangerous operation since the logging stream can contain sensitive information such as usernames and passwords.

see
DriverManager
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
Constructors Summary
public SQLPermission(String name)
Creates a new {@code SQLPermission} object with the specified name.

param
name the name to use for this {@code SQLPermission}.


                                         
       
        super(name);
    
public SQLPermission(String name, String actions)
Creates a new {@code SQLPermission} object with the specified name.

param
name is the name of the {@code SQLPermission}. Currently only {@code "setLog"} is allowed.
param
actions is currently unused and should be set to {@code null}.

        super(name, null);
    
Methods Summary