background image
<< Server-specific DataSource properties | Security mechanisms supported by the Derby >>

Network client security

<< Server-specific DataSource properties | Security mechanisms supported by the Derby >>
Derby Server and Administration Guide
23
Property
Type
Description
URL
Attribute
Notes
Similar to setting
connectionAttribute
to "create=true". Only
"create" is allowed,
other values equate
to null. The result of
conflicting settings
of createDatabase,
shutdownDatabase and
connectionAttributes is
undefined.
shutdownDatabase String
If set to
"shutdown",
shutdown
the database
specified with
databaseName
property.
shutdown
This property is
also available using
EmbeddedDataSource.
See the Derby
Reference Manual
for more information.
Similar to setting
connectionAttribute to
"shutdown=true". Only
"shutdown" is allowed,
other values equate
to null. The result of
conflicting settings
of createDatabase,
shutdownDatabase and
connectionAttributes
is undefined. If
authentication and
sqlAuthorization are
both enabled, database
shutdown is restricted to
the database owner.
Note that setAttributesAsPassword, which is available for the embedded DataSource, is
not available for the client DataSource.
Network client security
The Derby Network Client allows you to select a security mechanism by specifying a
value for the
securityMechanism
property.
You can set the
securityMechanism
property in one of the following ways:
· When you are using the
DriverManager
interface, set
securityMechanism
in a
java.util.Properties
object before you invoke the form of the
getConnection
method, which includes the
java.util.Properties
parameter.
· When you are using the
DataSource
interface to create and deploy your own
DataSource objects, invoke the
DataSource.setSecurityMechanism
method
after you create a DataSource object.
The following table lists the security mechanisms that the Derby Network Client supports,
and the corresponding property value to specify to obtain this security mechanism. The
default security mechanism is the user id only if no password is set. If the password is