[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: [iaik-jce] verifying digital signature



Since application/x-pkcs7-mime content-type indicates an PKCS#7 signed
message including the data you may use class iaik.pkcs7.SignedDataStream for
verifying the signature (since base64 is used, you will have to pipe the
data through an ASN1InputStream or Base64InputStream for removing the Base64
encoding).

Please be aware that no S/MIME type is specified, so it also may be an
encrypted message.

You alternatively may use IAIK-S/MIME with JavaMail API.

Dieter Bratko


-----Ursprüngliche Nachricht-----
Von: iaik-jce-owner@iaik.tu-graz.ac.at
[mailto:iaik-jce-owner@iaik.tu-graz.ac.at]Im Auftrag von Tim Hart
Gesendet: Donnerstag, 6. April 2000 18:24
An: 'iaik-jce@iaik.at'
Betreff: [iaik-jce] verifying digital signature



All,

I have a Java Servlet that received a HTTP Post request containing the
following byte[]:

	MIME-Version: 1.0
	Content-Disposition: attachment; filename=smime.p7m
	Content-Type: application/x-pkcs7-mime; name=smime.p7m
	Content-Transfer-Encoding: base64


MIAGCSqGSIb3DQEHAqCAMIILdAIBATELMAkGBSsOAwIaBQAwgAYJKoZIhvcNAQcBoIAEggQlPCFE
T0NU

WVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwvL0VOIj4N
Cjxo...

How do I verify the signature using the SMIME library?
(All of the examples are binary streams or mail boxes :^(

Thanks.

Tim Hart, Senior Consultant
Java Development Center
Interlink Group, Inc.
303-863-3996 x2377
tim.hart@ilg.com
www.ilg.com

--
Mailinglist-archive at
http://jcewww.iaik.at/mailarchive/iaik-jce/jcethreads.html

To unsubscribe send an email to listserv@iaik.at with the folowing content:
UNSUBSCRIBE iaik-jce




smime.p7s