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

Re: [iaik-jce] ObjectID shortName problem



Hello!
What version of IAIK-JCE are you using? I have tested  your sample with 2.0,
snap2.04, and 2.5, and everytime I got the expected result:
0.9.2342.19200300.100.1.1
userID
uid

D. Bratko

-----Ursprüngliche Nachricht-----
Von: Thomas Ernst <thomas.ernst@ubs.com>
An: iaik-jce@iaik.tu-graz.ac.at <iaik-jce@iaik.tu-graz.ac.at>
Datum: Mittwoch, 26. Mai 1999 10:21
Betreff: [iaik-jce] ObjectID shortName problem


>Good morning,
>
>I try to create a new ObjectID object with a name and a shortName for use
in
>a certificate.
>
>I do the following:
>
> ObjectID oid = new ObjectID("0.9.2342.19200300.100.1.1","userID","uid");
> System.out.println(oid.getID());
> System.out.println(oid.getName());
> System.out.println(oid.getShortName());
>
>Surprisingly the output is:
>
> 0.9.2342.19200300.100.1.1
> userID
> userID
>
>but I expected the last line to be the shortName "uid".
>
>What am I doing wrong?
>
>Regards
>
>Thomas Ernst
>
>--
>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
>
>
>


smime.p7s