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

Re: [iaik-jce] SignedContent



Dear Dieter,

I  am using an Evaluation Version (Educational) which has
been extracted from "iaiksmime251.exe" file. I suppose it is
a 2.51 version. Could you confirm it ?

In this case, does my problem come from a (known ? ) bug
or from a programming error  ?

In fact, I am looking for a way to extract the sender's certificate of a mail.

If the following does not work...
SignedContent sc = (SignedContent)(msg.getContent());
X509Certificate c = sc.verify();

Do you have another solution ?

Thank you.

Benoît.

Dieter Bratko wrote:

> This was a typical obfuscation software problem in Version 2.5.
> If you are using 2.5, please upgrade to 2.51.
>
> Dieter Bratko

>
>
> ----- Original Message -----
> From: Benoît Otjacques <otjacque@crpgl.lu>
> To: iaik-jce <iaik-jce@iaik.tu-graz.ac.at>; OtjacquesBenoît
> <otjacque@crpgl.lu>
> Sent: Monday, July 26, 1999 12:18 PM
> Subject: [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:75
> 5)
> >
> >      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
> >
> >
> >

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

   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