Build 1.0_r1(from source)

java.sql
Class SQLPermission

java.lang.Object
  extended by java.security.Permission
      extended by java.security.BasicPermission
          extended by java.sql.SQLPermission
All Implemented Interfaces:
Serializable, Guard

public final class SQLPermission
extends BasicPermission
implements Guard, Serializable

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

See Also:
Serialized Form

Constructor Summary
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.
 
Method Summary
 
Methods inherited from class java.security.BasicPermission
equals, getActions, hashCode, implies, newPermissionCollection
 
Methods inherited from class java.security.Permission
checkGuard, getName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Guard
checkGuard
 

Constructor Detail

SQLPermission

public SQLPermission(String name)
Creates a new SQLPermission object with the specified name.

Parameters:
name - the name to use for this SQLPermission

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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature