Currently my java program is reading emails along with attachments from the mailing server. It works fine as long as the email and the attachments are "not" encrypted.
The problem comes when the email and/or the attachment are encrypted.
I need to extend my application so that it should be able to handle encrypted emails and attachments as well.
I did some research and found out that for decrypting the contents i need the private key of the recipient email id and the digital signature of the sender?
If my above understanding is correct, could someone please refer me to some reference java examples / snippets where i get some insight into the java api used to perform this?
Many thanks in advance.