Programming the application to provide the user and password

In the DriverManager.getConnection call, 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, consider using SSL.

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

Related reference
Login failure exceptions with user authentication