# Re: Java Security.

Satish Kikkeri (satishkl@hotmail.com)
Thu, 09 Jul 1998 20:48:17 PDT

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Kurt Seidel: "Re: What's the end user process for granting access to a signed applet in JDK 1.2"
- Previous message: Satish Kikkeri: "Re: Java Security."
- Maybe in reply to: AMITABH BIHARI : "Java Security."

    From: "Satish Kikkeri" <satishkl@hotmail.com>

    To: java-security@java.sun.com

    Date: Thu, 09 Jul 1998 20:48:17 PDT

Hi,
I've been trying to write some test programs for the common security
algorithms using jdk1.2beta3 and jce1.2.
The platform is WinNT4.0 workstation.
Let me tell my settings (absolute settings)
path=c:\jdk1.2beta3\bin; -for all the jdk stuff
lib=c:\jdk1.2beta3\lib;c:\jdk1.2beta3\lib\classes.zip;
classpath=d:\jce12-ea2-dom\lib\jce12-ea2-dom.jar;

I have choosen to use STATIC provider settings in the
\jdk1.2beta3\lib\security\java.security file and the setting is
"security.provider.2=com.sun.crypto.provider.SunJCE" as stated in the
Installation guide.

The only algorithm that I'm able to write and run a test program is MD5,
since this is supported in JDK itself.
DES/DES-edeDES(3DES), DH and others compile when I use "Javac" or
VJ6.0++(Beta from MS).
To run the interpreter, that is another story, I cannot run anything
using "Java.exe " interpreter provided by the JDK. I always get
"java.lang.NoClassDefFoundError: classname" (that includes, MD5, DES,
3DES, DH and believe it or not "HelloWorld" HelloWorld class.

Now, if I use the JView.exe that comes with MS product, it runs MD5,
Hello, but for DES/3DES, DH, etc, it gives me an exception that goes:
"ERROR: java.security.NoSuchAlgorithmException: algorithm DES not
available " for DES.

I have imported all the packages , IGuess.

import java.io.*;
import java.math.BigInteger;
import java.security.*;
import java.security.spec.*;
import java.security.interfaces.*;
import javax.crypto.*;
import javax.crypto.spec.*;
import javax.crypto.interfaces.*;
import com.sun.crypto.provider.SunJCE;

Am I doing something that is wrong, obviously there is something wrong.

Please, let me know if there is something that is obvious to you and
I've missed

//Satish

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

- Next message: Kurt Seidel: "Re: What's the end user process for granting access to a signed applet in JDK 1.2"
- Previous message: Satish Kikkeri: "Re: Java Security."
- Maybe in reply to: AMITABH BIHARI : "Java Security."