|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.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.
ObjectIdentifier objects are immutable; they cannot be changed once created.
Constructor Summary | |
ObjectIdentifier(com.ibm.security.util.DerInputStream in)
Constructs an object ID from an ASN.1 encoded input stream. |
|
ObjectIdentifier(int[] values)
Constructs an object ID from an array of integers. |
|
ObjectIdentifier(String oid)
Constructs an object identifier from a string. |
Method Summary | |
boolean |
equals(Object other)
|
boolean |
equals(ObjectIdentifier other)
Compares this identifier with another, for equality. |
int |
hashCode()
|
boolean |
precedes(ObjectIdentifier other)
Compares this identifier with another, for sorting purposes. |
String |
toString()
Returns a string form of the object ID. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public ObjectIdentifier(String oid) throws IOException
public ObjectIdentifier(int[] values) throws IOException
public ObjectIdentifier(com.ibm.security.util.DerInputStream in) throws IOException
NOTE: When an exception is thrown, the input stream has not been returned to its "initial" state.
derin
- DER-encoded data holding an object IDMethod Detail |
public boolean precedes(ObjectIdentifier other)
other
- identifer that may precede this one.public boolean equals(Object other)
public boolean equals(ObjectIdentifier other)
public int hashCode()
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |