AuthenticationMethod
- Last Updated: September 11, 2025
- 1 minute read
- DataDirect Connectors
- JDBC
- Documentation
Purpose
Determines which authentication method the driver uses when establishing a connection. If the specified authentication method is not supported by the database server, the connection fails and the driver throws an exception.
Valid Values
userIdPassword | kerberos
Behavior
If set to userIdPassword, the driver uses
user ID/password authentication. In addition, the driver supports the SCRAM-SHA-256 and
SCRAM-SHA-256-PLUS hashing mechanisms for enhanced security during authentication. See
"Configuring the driver for user ID/password authentication" for details.
If set to kerberos, the driver uses
Kerberos authentication. The ServicePrincipalName property must be specified.
Notes
- The User property provides the user ID. The Password property provides the password.
Data Source Methods
public String
getAuthenticationMethod()
public void
setAuthenticationMethod(String)
Default
userIdPassword
Data Type
String