ObjectIdentifier

Represent an ISO Object Identifier.

<P>Object Identifiers are arbitrary length hierarchical identifiers. The individual components are numbers, and they define paths from the root of an ISO-managed identifier space. You will sometimes see a string name used instead of (or in addition to) the numerical id. These are synonyms for the numerical IDs, but are not widely used since most sites do not know all the requisite strings, while all sites can parse the numeric forms.

<P>So for example, JavaSoft has the sole authority to assign the meaning to identifiers below the 1.3.6.1.4.1.42.2.17 node in the hierarchy, and other organizations can easily acquire the ability to assign such unique identifiers.

@author David Brownell @author Amit Kapoor @author Hemma Prafullchandra

Constructors

this
this(string oid)

Constructs, from a string. This string should be of the form 1.23.56. Validity check included.

this
this(int[] values)

Constructor, from an array of integers. Validity check included.

this
this(DerInputStream inputStream)

Constructor, from an ASN.1 encoded input stream. Validity check NOT included. The encoding of the ID in the stream uses "DER", a BER/1 subset. In this case, that means a triple { typeId, length, data }.

this
this(DerInputBuffer buf)
Undocumented in source.

Members

Functions

encode
void encode(DerOutputStream ot)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Object obj)

Compares this identifier with another, for equality.

toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()

Returns a string form of the object ID. The format is the conventional "dot" notation for such IDs, without any user-friendly descriptive strings, since those strings will not be understood everywhere.

Static functions

newInternal
ObjectIdentifier newInternal(int[] values)

This method is kept for compatibility reasons. The new implementation does the check and conversion. All around the JDK, the method is called in static blocks to initialize pre-defined ObjectIdentifieies. No obvious performance hurt will be made after this change.

Meta