gawel schrieb:
> Hajo,
> I need to be able to manually create
> object of class that implements RSAPublicKey
> interface. Does anyone have any idea ?
You mean more "manual" than this:
KeyFactory keyFactory = KeyFactory.getInstance("RSA");
RSAPublicKeySpec keySpec = new
RSAPublicKeySpec(bigIntModulus,bigIntExponent);
PublicKey pubKey = keyFactory.generatePublic(keySpec);
Jan
gawel - 18 Mar 2005 15:38 GMT
> gawel schrieb:
>
[quoted text clipped - 9 lines]
> RSAPublicKeySpec(bigIntModulus,bigIntExponent);
> PublicKey pubKey = keyFactory.generatePublic(keySpec);
Thanks, I am used to .NET documentation (where you
have all method of given class) and I didn't notice
getInstance() method. Thanks a lot for a tip.
Gagwel
Michel Gallant - 18 Mar 2005 16:46 GMT
See also this interesting article:
http://java.sun.com/developer/JDCTechTips/2004/tt0116.html
- Mitch
> > gawel schrieb:
> >
[quoted text clipped - 15 lines]
>
> Gagwel