I've implemented a web service in Java using Java Web Service Developer Pack and I'm 
using Bouncycastle's RSA provider to encrypt the password when logging in from a Java 
client to my web service. The web service has a 'getPublicKey' method which encodes 
the public key and then converts it into an int array. The client then converts it 
back into a byte array and recreates the public key using the X509EncodedKeySpec and 
KeyFactory classes, respectively. The password is then encrypted using the public key 
and passed to the web service.
 
Now I want to talk to my web service using a .NET client (C#). I've retrieved the 
public key but I don't know how to recreate the public key on the .NET side. Any 
sample code would be greatly appreciated.
 
/Magnus

¢çž·švg¬±¨±úèšØ^äÍ6«r¯zéì¹»®&Þ~º&äÍ:+²æìr¸›zÚ(¶«
ëÞ–ŠLz{h®X¬¶Æ­†Ûiÿ÷b±Ë¬±×¯zZ)r‰


Reply via email to