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

[iaik-jce] SignedContent



Hello,


I must read a signed mail (msg), coming from Netscape Communicator 4.5.

msg.getContentType() returns :
multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1;
...

Object om = msg.getContent();
... causes the following runtime error:

Exception in thread "main" java.lang.NoClassDefFoundError:
iaik/asn1/UNIString
     at iaik.asn1.asn1.ASN.a(Unknown Source)
     at iaik.asn1.ASN.<clinit>(Unknown Source)
     at iaik.asn1.ObjectID.<init>(Unknown Source)
     at iaik.asn1.ObjectID.<init>(Unknown Source)
     at iaik.asn1.ObjectID.<clinit>(Unknown Source)
     at iaik.asn1.structures.AlgorithmID.<init>(Unknown Source)
     at iaik.asn1.structures.AlgorithmID.<clinit>(Unknown Source)
     at iaik.security.smime.signed_content.<init>(Unknown Source)
     at iaik.security.smime.signed_content.getContent(Unknown Source)
     at
javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:755)

     at javax.activation.DataHandler.getContent(DataHandler.java:511)
     at
javax.mail.internet.MimeMessage.getContent(MimeMessage.java:1068)
     ... (my classes)

The mailcap file has been found and the "multipart/signed" Mime Type has
been
handled as a "iaik.security.smime.signed_content". (I think ...)

The exception seems to be that the class "iaik.asn1.UNIString" cannot be
found.

At the beginning of my code, there is this line:

import iaik.asn1.*;
import iaik.asn1.UNIString;

And no error seems to be triggered by it.

Could you help me ? Where comes the error from ?

Thank you,


Benoît.


--
**********************************************************

   Otjacques Benoît

   CRP-Gabriel Lippmann
   162a, Av. de la Faïencerie
   L-1511 Luxembourg.

   Tel. +352-47.02.61-373.
   Fax  +352-47.02.64.

   "Il n'a y pas de vent favorable
    pour celui qui ne sait pas où il va."
    Sénèque.

**********************************************************


--
Mailinglist-archive at http://jcewww.iaik.tu-graz.ac.at/mailarchive/iaik-jce/maillist.html

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