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

Re: [iaik-jce] ObjectID shortName problem

The static register method of the ObjectID class only can be used for
registering a name for a specific extension, but not a short name. It will
clear any registered shortname.

However, registration already is performed when using the corresponding
constructor. So, in your example, calling

   ObjectID oid = new ObjectID("0.9.2342.19200300.100.1.1","userID","uid");

already will register name and shortName for your ObjectID.
For that reason we tend to remove the register method.

The purpose of name (shortName) registration is, that the registered
shortName (name) will be displayed instead of the OID string when parsing an

If a shortName is registrated it will be displayed.
If no shortName, but a name is registered, the name will be displayed.
If whether name nor shortName are registered, the OID string will be

So, when, for instance, parsing a RDN (AVA) of type commonName, "CN" will be
shown instead of "".

Dieter 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 15:45
Betreff: RE: [iaik-jce] ObjectID shortName problem

>I am sorry but I probably misunderstood the register() method in ObjectID.
>What I exactly did (and didn't write in the previously posted code) was the
> ObjectID oid = new ObjectID("0.9.2342.19200300.100.1.1","userID","uid");
>      ObjectID.register(oid, "userID");
> System.out.println(oid.getID());
> System.out.println(oid.getName());
> System.out.println(oid.getShortName());
>That is I also registered the new oid under its name "userID". However,
>I do this the shortName is overridden with the name. I don't understand
>How can I register a new ObjectID with a name and a shortName?
>Best regards
>Thomas Ernst
>Mailinglist-archive at
>To unsubscribe send an email to listserv@iaik.tu-graz.ac.at with the
folowing content: UNSUBSCRIBE iaik-jce