aspose file tools
The moose likes Web Services and the fly likes Need help in Encrypting Message Using XSS4j API Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply locked New topic
Author

Need help in Encrypting Message Using XSS4j API

Neer Gupta
Greenhorn

Joined: Sep 24, 2005
Posts: 3
I was trying to encrypt a message using XSS4j.I have certain issues.As for Encryption we are supposed to use Public Key of client to genrate and encrypt the symmetric key which will be used for final Enbcryption.I am trying to use the same but my doubt is how to create a symmetric key and how to encrypt it using public key.

Actually some how I coded and it is encrypting hte message also but it is throwing Null pointer Exception i.e "Key is not specified or obtained."

When I explored it further I guess it is creating this problem while resolvinfg Key.I dont have any idea how to Resolve the Key without using KeyStoreKeyInfoResolver.As My public is not being store in Key Store.I am getign this key fromCertificate sent by client.
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

It appears you have posted the same topic three times, but different topic names. I am closing this one.

I moved the other two into Security upon realizing you cross-posted, so I will close one of those as well.

Please do not post the same question in multiple forums.


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Need help in Encrypting Message Using XSS4j API
 
Similar Threads
How to get key from decrypted byte[]
SOAP Encryption
How encrpyt all files on web server so decryptable by all users' keys?
XML security doubt: Public key cryptography
Help to decrypt string containing RSA public key