public final class ObjectIdentifier
extends java.lang.Object
implements java.io.Serializable
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.
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.
| Constructor and Description |
|---|
ObjectIdentifier(DerInputStream in)
Reads an ObjectIdentifier from a DerInputStream.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares this identifier with another, for equality.
|
int |
hashCode() |
static ObjectIdentifier |
of(KnownOIDs o)
Returns an ObjectIdentifier instance for the specific KnownOIDs.
|
static ObjectIdentifier |
of(java.lang.String oidStr)
Returns an ObjectIdentifier instance for the specific String.
|
java.lang.String |
toString()
Returns a string form of the object ID.
|
public ObjectIdentifier(DerInputStream in) throws java.io.IOException
in - the input streamjava.io.IOException - if there is an encoding errorpublic static ObjectIdentifier of(java.lang.String oidStr) throws java.io.IOException
java.io.IOExceptionpublic static ObjectIdentifier of(KnownOIDs o)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object