APIdia Launch Partner
Top Description Fields Constructors Methods
java.sql

public final Class SQLPermission

extends BasicPermission
Class Inheritance
Annotations
@Deprecated
since:26
forRemoval:true
Imports
java.security.*

Deprecated

for removal since 26.

There is no replacement for this class.

This class was only useful in conjunction with the java.lang.SecurityManager, which is no longer supported. There is no replacement for this class.
Since
1.3

Field Summary

Modifier and TypeField and Description
pack-priv static final long
serialVersionUID

Hides java.security.BasicPermission.serialVersionUID.

Private serial version unique ID to ensure serialization compatibility.

Constructor Summary

AccessConstructor and Description
public
SQLPermission(String
the name of this SQLPermission object, which must be either setLog, callAbort, setSyncFactory, deregisterDriver, or setNetworkTimeout
name
)

Creates a new SQLPermission object with the specified name.

public
SQLPermission(String
the name of this SQLPermission object, which must be either setLog, callAbort, setSyncFactory, deregisterDriver, or setNetworkTimeout
name
,
String
should be null
actions
)

Creates a new SQLPermission object with the specified name.

Method Summary

Inherited from java.security.BasicPermission:
equalsgetActionshashCodeimpliesnewPermissionCollection

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides java.security.BasicPermission.serialVersionUID.

Private serial version unique ID to ensure serialization compatibility.

Constructor Detail

SQLPermissionback to summary
public SQLPermission(String name)

Creates a new SQLPermission object with the specified name. The name is the symbolic name of the SQLPermission.

Parameters
name:String

the name of this SQLPermission object, which must be either setLog, callAbort, setSyncFactory, deregisterDriver, or setNetworkTimeout

Exceptions
NullPointerException:
if name is null.
IllegalArgumentException:
if name is empty.
SQLPermissionback to summary
public SQLPermission(String name, String actions)

Creates a new SQLPermission object with the specified name. The name is the symbolic name of the SQLPermission; the actions String is currently unused and should be null.

Parameters
name:String

the name of this SQLPermission object, which must be either setLog, callAbort, setSyncFactory, deregisterDriver, or setNetworkTimeout

actions:String

should be null

Exceptions
NullPointerException:
if name is null.
IllegalArgumentException:
if name is empty.