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