Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / March 2005

Tip: Looking for answers? Try searching our database.

RSAPublicKey

Thread view: 
gawel - 17 Mar 2005 18:46 GMT
Hajo,
I need to be able to manually create
object of class that implements RSAPublicKey
interface. Does anyone have any idea ?

thanks in advance for info

Gawel
Jan Peter Stotz - 17 Mar 2005 22:03 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.