# authentication problem in appletviewer1.1

Jun Huang (jhuang3@ece.utexas.edu)
Fri, 17 Jul 1998 12:15:03 -0500 (CDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: J.D. Fagan: "Object level security"
- Previous message: Jan Luehe: "Re: Re[4]: Trying to write a Provider"

    Date: Fri, 17 Jul 1998 12:15:03 -0500 (CDT)

    From: Jun Huang <jhuang3@ece.utexas.edu>

    To: java-security@java0.javasoft.com

    Subject: authentication problem in appletviewer1.1

Hellow,

I experienced a problem with appletviewer.

I am using network to send public to server, and doing authentication
stuff.

when I put the code below in a main, it works, but when I put it in
applets
the appletviewer will hang up at:

keyGen.initialize(512, new SecureRandom());,

would anyone please tell me why?

the code is :

private void sendPublicKey(){

try{
KeyPairGenerator keyGen=KeyPairGenerator.getInstance("DSA");

keyGen.initialize(512, new SecureRandom());

Signature dsa = Signature.getInstance("SHA/DSA");

pair=keyGen.generateKeyPair();

PrivateKey priv = pair.getPrivate();
/* Initializing the object with a private key */

PublicKey pub = pair.getPublic();
PublicKey clientPubkey;
dsa.initSign(priv);
System.out.println(pub);
outputStream.println(pub);
}
catch(Exception e){
System.out.println("exception in public and private key");
}
}

- Next message: J.D. Fagan: "Object level security"
- Previous message: Jan Luehe: "Re: Re[4]: Trying to write a Provider"