Programming applications for Derby user authentication

To program user authentication into Derby applications, use the DriverManager.getConnection call to specify the user name and password.

An application can provide the user name and password in the following ways.

Note: The password is not encrypted. When you are using Derby in the context of a server framework, the framework should be responsible for encrypting the password across the network. If your framework does not encrypt the password, it is strongly recommended that you protect network connections with SSL/TLS (see Configuring SSL/TLS).

For information about the treatment of user names within the Derby system, see Users and authorization identifiers.

Related concepts
Configuring LDAP authentication
Configuring NATIVE authentication
Specifying authentication with a user-defined class
Configuring Network Server authentication in special circumstances
Related reference
List of user authentication properties
Login failure exceptions with user authentication