When user ID/password authentication is used, the encryption method that is used for user IDs and passwords is negotiated during the connection process. Supported encryption methods are:
If set to clearText, the driver uses user ID/password authentication. The driver sends the user ID and password in clear text to the DB2 server for authentication. If a user ID and password are not specified, the driver throws an exception.
If set to client, the driver uses client authentication. The DB2 server relies on the client to authenticate the user and does not provide additional authentication. The driver ignores any user ID or password specified.
If set to encryptedPassword, the driver uses user ID/password authentication. The driver sends a user ID in clear text and an encrypted password to the DB2 server for authentication. If the requirements for AES encryption are met, the driver uses AES encryption; otherwise, the driver allows a downgrade to DES encryption. If the EncryptionMethod property is set to a value of
DBEncryption or
requestDBEncryption, the driver downgrades encryption to DES. If a user ID and password are not specified, the driver throws an exception.
If set to encryptedPasswordAES, the driver uses user ID/password authentication. The driver sends a clear text user ID and an AES-encrypted password to the DB2 server for authentication. The driver throws an exception in the following cases:
If set to encryptedUIDPassword, the driver uses user ID/password authentication. The driver sends an encrypted user ID and password to the DB2 server for authentication. If the requirements for AES encryption are met, the driver uses AES encryption; otherwise, the driver allows a downgrade to DES encryption. If the EncryptionMethod property is set to a value of
DBEncryption or
requestDBEncryption, the driver downgrades encryption to DES. If a user ID and password are not specified, the driver throws an exception.
If set to encryptedUIDPasswordAES, the driver uses user ID/password authentication. The driver sends an AES-encrypted user ID and password to the DB2 server for authentication. The driver throws an exception in the following situations:
If set to kerberos, the driver uses Kerberos authentication. The driver ignores any user ID or password specified.