Android
java.sql
public final class

java.sql.SQLPermission

java.lang.Object
java.security.Permission Serializable Guard
java.security.BasicPermission Serializable
java.sql.SQLPermission Serializable Guard

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 usernames, passwords

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.
Methods inherited from class java.security.BasicPermission
Methods inherited from class java.security.Permission
Methods inherited from class java.lang.Object
Methods inherited from interface java.security.Guard

Details

Public Constructors

public SQLPermission(String name)

Creates a new SQLPermission object with the specified name.

Parameters

name the name to use for this SQLPermission

public SQLPermission(String name, String actions)

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
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48