java.sql
Class SQLPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
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
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
Please submit a feedback, bug or feature