background image
<< derby.authentication.server | derby.database.defaultConnectionMode >>

derby.connection.requireAuthentication

<< derby.authentication.server | derby.database.defaultConnectionMode >>
Derby Reference Manual
362
'godfrey:9090')
Dynamic or static
Static. For system-wide properties, you must reboot Derby for the change to take effect.
For database-wide properties, you must reboot the database for the change to take
effect.
derby.connection.requireAuthentication
Function
Turns on user authentication for Derby.
When user authentication is turned on, a connection request must provide a valid user
name and password.
Derby uses the type of user authentication specified with the
derby.authentication.provider
property.
For more information about user authentication, see "Working with user authentication" in
the Derby Developer's Guide.
Default
False.
By default, no user authentication is required.
Example
-- system-wide property
derby.connection.requireAuthentication=true
-- database-wide property
CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(
'derby.connection.requireAuthentication',
'true')
Dynamic or static
Static. For system-wide properties, you must reboot Derby for the change to take effect.
For database-wide properties, you must reboot the database for the change to take
effect.
derby.database.classpath
Function
Specifies the classpath that Derby should use when searching for jar files in a database.
This property must be set to enable Derby to load classes from jar files installed with the
SQLJ.INSTALL_JAR system procedure
.
Make sure to do the following:
· Separate jar files with a colon (
:
).
· Use fully qualified identifiers for the jar files (schema name and jar name).
· Set the property as a database-level property for the database.
Derby searches the user's classpath before it searches the jar files specified by the
derby.database.classpath property setting. To force Derby to search the database only,
remove the classes from the user classpath.
Derby searches for classes and resources in the order specified by the property setting.