user=userName attribute

Specifies a valid user name for the system, specified with a password. A valid user name and password are required when user authentication is turned on.

Combining with other attributes

Use in conjunction with the password=userPassword attribute.

The following database connection URL connects the user jill to toursDB:

jdbc:derby:toursDB;user=jill;password=toFetchAPail