EncryptionMethod
- Last Updated: May 30, 2024
- 1 minute read
- DataDirect Connectors
- JDBC
- Documentation
Purpose
Determines whether data is encrypted and decrypted when transmitted over the network between the driver and database server.
Valid Values
noEncryption | DBEncryption |
requestDBEncryption | SSLBehavior
If set to noEncryption, data is not
encrypted or decrypted.
If set to DBEncryption, data is encrypted
using DES encryption if the database server supports it. If the database server does
not support DES encryption, the connection fails and the driver throws an exception.
The AuthenticationMethod property must be set to a value of clearText, encryptedPassword, or
encryptedUIDPassword. This value is not
supported for Db2 for i.
If set to requestDBEncryption, data is
encrypted using DES encryption if the database server supports it. If the database
server does not support DES encryption, the driver attempts to establish an
unencrypted connection. The AuthenticationMethod property must be set to a value of
clearText, encryptedPassword, or encryptedUIDPassword. This value is not supported for Db2 for i.
If set to SSL, data is encrypted using
TLS/SSL. If the database server does not support TLS/SSL, the connection fails and
the driver throws an exception.
Notes
- Connection hangs can occur when the driver is configured for TLS/SSL and the database server does not support TLS/SSL. You may want to set a login timeout using the LoginTimeout property to avoid problems when connecting to a server that does not support TLS/SSL.
Data Source Methods
public String
getEncryptionMethod()
public void
setEncryptionMethod(String)
Default
noEncryption
Data Type
String