4 DB2 Driver : Data Encryption

Data Encryption
The DB2 driver supports database-specific encryption (DB2’s own encryption protocol) for the following databases:
■
■
The DB2 driver supports SSL encryption for the following databases:
■
■
■
See “Data Encryption Across the Network” for more information.
Configuring DB2-Specific Encryption
1
Set the AuthenticationMethod property to clearText, encryptedPassword, encryptedPasswordAES, encryptedUIDPassword, or encryptedUIDPasswordAES.
2
Set the EncryptionMethod property to DBEncryption or RequestDBEncryption.
Configuring SSL Encryption
NOTE: Connection hangs can occur when the driver is configured for SSL and the database server does not support 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 SSL.
To configure SSL encryption:
1
2
Specify the location and password of the truststore file used for SSL server authentication. Either set the TrustStore and TrustStore properties or their corresponding Java system properties (javax.net.ssl.trustStore and javax.net.ssl.trustStorePassword, respectively).
3
4
Optionally, set the HostNameInCertificate property to a host name to be used to validate the certificate. The HostNameInCertificate property provides additional security against man-in-the-middle (MITM) attacks by ensuring that the server the driver is connecting to is the server that was requested.
5
a
Specify the location and password of the keystore file. Either set the KeyStore and KeyStore properties or their corresponding Java system properties (javax.net.ssl.keyStore and javax.net.ssl.keyStorePassword, respectively).
b