public final class

SQLPermission

extends BasicPermission
implements Serializable Guard
java.lang.Object
   ↳ java.security.Permission
     ↳ java.security.BasicPermission
       ↳ java.sql.SQLPermission

Class Overview

A Permission relating to security access control in the java.sql package.

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

See Also

Summary

Public Constructors
SQLPermission(String name)
Creates a new SQLPermission object with the specified name.
SQLPermission(String name, String actions)
Creates a new SQLPermission object with the specified name.
[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 SQLPermission (String name)

Since: API Level 1

Creates a new SQLPermission object with the specified name.

Parameters
name the name to use for this SQLPermission.

public SQLPermission (String name, String actions)

Since: API Level 1

Creates a new SQLPermission object with the specified name.

Parameters
name is the name of the SQLPermission. Currently only "setLog" is allowed.
actions is currently unused and should be set to null.