java.lang.Object | |
↳ | sun.security.util.ObjectIdentifier |
Represent an ISO Object Identifier.
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an object identifier from a string.
| |||||||||||
Constructs an object ID from an array of integers.
| |||||||||||
Constructs an object ID from an ASN.1 encoded input stream.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Use equals((Object)oid)
| |||||||||||
Compares this identifier with another, for equality.
| |||||||||||
Returns a hash code value for the object.
| |||||||||||
Create a new ObjectIdentifier for internal use.
| |||||||||||
Compares this identifier with another, for sorting purposes.
| |||||||||||
Returns a string form of the object ID.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs an object identifier from a string. This string should be of the form 1.23.34.45.56 etc.
IOException |
---|
Constructs an object ID from an array of integers. This is used to construct constant object IDs.
IOException |
---|
Constructs an object ID from an ASN.1 encoded input stream. The encoding of the ID in the stream uses "DER", a BER/1 subset. In this case, that means a triple { typeId, length, data }.
NOTE: When an exception is thrown, the input stream has not been returned to its "initial" state.
in | DER-encoded data holding an object ID |
---|
IOException | indicates a decoding error |
---|
Compares this identifier with another, for equality.
obj | the reference object with which to compare. |
---|
Returns a hash code value for the object. This method is
supported for the benefit of hashtables such as those provided by
java.util.Hashtable
.
The general contract of hashCode
is:
hashCode
method on each of
the two objects must produce the same integer result.
equals(java.lang.Object)
method, then calling the hashCode method on each of the
two objects must produce distinct integer results. However, the
programmer should be aware that producing distinct integer results
for unequal objects may improve the performance of hashtables.
As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)
Create a new ObjectIdentifier for internal use. The values are neither checked nor cloned.
Compares this identifier with another, for sorting purposes. An identifier does not precede itself.
other | identifer that may precede this one. |
---|
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.