Skip Headers
Oracle® Security Developer Tools Reference
10g Release 2 (10.1.2)
  Go To Documentation Library
Go To Product List
Solution Area
Go To Table Of Contents
Go To Index


3 Oracle JCE Provider

The Java Cryptography Extension (JCE) from Sun Microsystems is an optional package to the Java 2 platform. It is a framework for implementing encryption, key generation and key agreement, and Message Authentication Code (MAC) algorithms.

The Oracle JCE Provider package supplies a concrete implementation of a subset of the cryptographic services defined in JCE 1.2.1.

This chapter contains these topics:

3.1 Features and Benefits of Oracle JCE Provider

Oracle JCE Provider supports a number of cryptographic algorithms in the following application areas:

3.1.1 Using the Oracle JCE Provider

For more information about the Java Cryptography Extension and how to use the Oracle JCE Provider, please refer to the Sun JCE documentation at:

3.2 Setting Up Your Oracle JCE Provider Environment

The Oracle Security Developer Tools are installed with Oracle Application Server in ORACLE_HOME. This section explains how to set up your environment for Oracle JCE Provider. It contains these topics:

3.2.1 System Requirements for Oracle JCE Provider

Oracle JCE Provider is compatible with Java Cryptography Extension (JCE) version 1.2.1. In order to use Oracle JCE Provider, you must install JCE 1.2.1 on your system.

The Java Cryptography Extension is available from Sun Microsystems at:

3.2.2 Installation Requirements

Add the following line to your file, which is usually located in $JAVA_HOME/jre/lib/security:


When installing the distribution files, the location of the Oracle JCE Provider jar file depends on where the JCE 1.2.1 framework is installed:

If the JCE 1.2.1 framework is an "installed" extension

If the JCE 1.2.1 framework is an installed extension, the following files:

  • jce1_2_1.jar

  • jce_provider_jdk1x.jar

  • US_export_policy.jar

  • local_policy.jar

must appear in the standard location for jar files of an installed extension:

File Platform
$JAVA_HOME\lib\ext Win32
$JAVA_HOME/lib/ext Solaris

where $JAVA_HOME refers to the directory where the Java software is installed.

If the JCE 1.2.1 framework is located on the classpath

If the JCE 1.2.1 framework is not installed as an extension but instead is located on the class path, and a security manager is installed, you need to grant permissions to the JCE 1.2.1 framework and JCE providers when you run applets or applications using JCE.

3.2.3 Setting the CLASSPATH Environment Variable

Your CLASSPATH environment variable must contain the full path and file names to the required jar and class files. Make sure that the the following files are included in your CLASSPATH:

  • osdt_core3.jar

  • osdt_jce.jar Setting the CLASSPATH on Windows

To set your CLASSPATH on Windows:

  1. In your Windows Control Panel, select System.

  2. In the System Properties dialog, select the Advanced tab.

  3. Click Environment Variables.

  4. In the User Variables section, click New to add a CLASSPATH environment variable for your user profile. If a CLASSPATH environment variable already exists, select it and click Edit.

  5. Add the full path and file names for all of the required jar and class files to the CLASSPATH.

    For example, your CLASSPATH might look like this:

  6. Click OK. Setting the CLASSPATH on UNIX

On UNIX, set your CLASSPATH environment variable to include the full path and file name of all of the required jar and class files. For example:

setenv CLASSPATH $CLASSPATH:$ORACLE_HOME/jlib/osdt_core3.jar:\