Use Bouncy Castle.
http://cephas.net/blog/2004/04/01/pg...bouncy-castle/
Also see here:
http://blogs.artinsoft.net/mrojas/ar...p-in-java.aspx
Though, I'm not sure why you are required to send it via a Java application as PGP implementations exist for every other common language/platform.
At any rate, those two links should get you where you need pretty quickly. Tell your friends about
Nikki's Reviews and
Sexcellence!
