The driver supports User ID/password authentication. It authenticates the user to the database using a user name and password.

Take the following steps to configure user ID/password authentication.
  • Set the AuthenticationMethod property to userIDPassword.
  • Set the User property to provide the user ID.
  • Set the Password property to provide the password.
For example, the following is a connection string with only the required properties for making a connection using user ID/password authentication.
Note: The User and Password properties are not required to be stored in the connection string. They can also be passed separately by the application.
Connection conn = DriverManager.getConnection 
("jdbc:datadirect:oracleservicecloud:LoginHost=mysite.custhelp.com;
User=test;Password=secret;");