Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem creating Signed and encrypted mail with attachment

843830Jul 13 2005 — edited May 1 2006
Hi,
I'm using BouncyCastle and I need to create a Signed and encrypted
mail with attachment having headers like this:

MIME Header

Content-Type: multipart/signed;
protocol="application/x-pkcs7-signature";
micalg=SHA1;

Then an attachment

Content-Type: application/x-pkcs7-signature;
name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="smime.p7s"

How can I do it with BouncyCastle? I'm not be able to create it, I only create a mail like this:
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1;

Could you help me, please? Could you give me a real Java class example to do this, please?

Thanks in advance,
Manuela
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 29 2006
Added on Jul 13 2005
7 comments
1,203 views