I wanted to send my public key to the client. I am using SOAP technology for web services. Any ideas how to send the key to the client
KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA"); kpg.initialize(2048); KeyPair kp = kpg.genKeyPair(); PublicKey k = kp.getPublic();