Skip Headers
Oracle TopLink Developer's Guide
10g Release 3 (10.1.3)
B13593-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

Configuring Password Encryption

By default, passwords are written to and read from the sessions.xml file in encrypted form using JCE encryption.

Currently, TopLink Workbench does not support specifying the encryption class used. To change the encryption class used, you must modify the login in Java using a preLogin event listener.

Using Java

To specify the encryption class that TopLink should use to write a password to or read a password from the sessions.xml file, use DatasourceLogin method setEncryptionClassName, passing in the name of the encryption class as a String.

To configure a DatasourceLogin with an encrypted password, use DatasourceLogin method setEncryptedPassword, passing in the encrypted password as a String.