Date: Tue, 20 Jan 1998 11:19:52 -0800 (PST)
From: Jan Luehe <Jan.Luehe@Eng>
Subject: Re: Your Message Sent on Tue, 20 Jan 1998 09:46:31 -0500
To: java-security@web2.javasoft.com, joseasoria@earthlink.net
Josep:
> I've downloaded JCE 1.2, but I'm having some installation troubles,
> specially when I try to install it along with JDK 1.2 ( some acces
> problems).
> Would you be so kind to tell me if "java" extension source files are
> availables? If not, is there any way to swap the security provider from a
> program's code without modifying the provider's file?
Please follow the installation instructions for JCE1.2
(http://developer.javasoft.com/developer/earlyAccess/jdk12/jce12_install.html).
Under item 4, you will find the following instruction:
4.Install the SunJCE provider.
SunJCE is the built-in provider that comes with JCE 1.2. You can install
the SunJCE provider in two different ways:
Dynamic registration
Add the following lines of code at the beginning of your program:
import java.security.Provider;
Provider sunJCE = new com.sun.crypto.provider.SunJCE();
Security.addProvider(sunJCE);
Static registration
Add the following line to the security property file of your JDK
installation, where you configure your crypto
providers. Substitute n for the priority that you would like to
assign to the SunJCE provider:
security.provider.n=com.sun.crypto.provider.SunJCE
Thanks,
Jan