Skip Headers

Oracle TopLink Developer's Guide 10g Release 3 (10.1.3) B13593-01 |
| Home | Solution Area | Contents | Index

Previous | 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`.