Sun Java System Application Server Platform Edition 8.2 Administration Guide

ProcedureTo configure a JCE Provider

The Java Cryptography Extension (JCE) provider included with J2SE 1.4.x does not support RSA encryption. Because the XML Encryption defined by WS-Security is typically based on RSA encryption, in order to use WS-Security to encrypt SOAP messages you must download and install a JCE provider that supports RSA encryption.

Note –

RSA is public-key encryption technology developed by RSA Data Security, Inc. The acronym stands for Rivest, Shamir, and Adelman, the inventors of the technology.

If you are running the Application Server on version 1.5 of the Java SDK, the JCE provider is already configured properly. If you are running the Application Server on version 1.4.x of the Java SDK, you can add a JCE provider statically as part of your JDK environment, as follows.

  1. Download and install a JCE provider JAR (Java ARchive) file.

    The following URL provides a list of JCE providers that support RSA encryption:

  2. Copy the JCE provider JAR file to java-home/jre/lib/ext/.

  3. Stop the Application Server.

    If the Application Server is not stopped and then restarted later in this process, the JCE provider will not be recognized by the Application Server.

  4. Edit the java-home/jre/lib/security/ properties file in any text editor. Add the JCE provider you’ve just downloaded to this file.

    The file contains detailed instructions for adding this provider. Basically, you need to add a line of the following format in a location with similar properties:


    In this example, n is the order of preference to be used by the Application Server when evaluating security providers. Set n to 2 for the JCE provider you’ve just added.

    For example, if you’ve downloaded The Legion of the Bouncy Castle JCE provider, you would add this line.


    Make sure that the Sun security provider remains at the highest preference, with a value of 1.

    Adjust the levels of the other security providers downward so that there is only one security provider at each level.

    The following is an example of a file that provides the necessary JCE provider and keeps the existing providers in the correct locations.
  5. Save and close the file.

  6. Restart the Application Server.