Re: [Jsdsi-users] Exception while creating new KeyPair
Status: Pre-Alpha
Brought to you by:
sajma
From: Sameer A. <aj...@gm...> - 2005-11-01 15:12:39
|
Sean, can you answer this? Looks like you wrote this code. This like is somewhat suspect: 153 kpg =3D KeyPairGenerator.getInstance("SPKI/" + keyEnum.jdkN= ame()) There's no KeyPairGenerator registered as "SPKI/RSA". If you remove the "SPKI/", this should work (I think the Java RSA library is simply "RSA"), but this is just a hack for now. Hopefully Sean has an idea of how this was supposed to work :) S On 11/1/05, Somaya Aboulwafa <som...@ya...> wrote: > Hi, > I am trying to create a new keypair as follows: > > KeyPair signer =3D KeyPairFactory.create(KeyEnum.RSA); > > but I got the following Runtime Exception: > > jsdsi.JsdsiRuntimeException: > java.security.NoSuchAlgorithmException: SPKI/RSA > KeyPairGenerator not available > at > jsdsi.util.KeyPairFactory.createKeyPairGenerator(KeyPairFactory.java:155) > at > jsdsi.util.KeyPairFactory.getKeyPairGenerator(KeyPairFactory.java:120) > at > jsdsi.util.KeyPairFactory.create(KeyPairFactory.java:102) > at > jsdsi.util.KeyPairFactory.create(KeyPairFactory.java:59) > > So any idea about why is this happening and how to > overcome this? > > Thanks, > Somaya > > > > __________________________________ > Start your day with Yahoo! - Make it your home page! > http://www.yahoo.com/r/hs > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Jsdsi-users mailing list > Jsd...@li... > https://lists.sourceforge.net/lists/listinfo/jsdsi-users > > -- Sameer http://ajmani.net |