| java.lang.Object sun.security.util.ObjectIdentifier
ObjectIdentifier | final public class ObjectIdentifier implements Serializable(Code) | | 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.
version: 1.28 author: David Brownell author: Amit Kapoor author: Hemma Prafullchandra |
ObjectIdentifier | public ObjectIdentifier(String oid) throws IOException(Code) | | Constructs an object identifier from a string. This string
should be of the form 1.23.34.45.56 etc. The first component
should be 0,1 or 2 and the second component should be greater
than or equal to 0 and less than or equal to 39.
|
ObjectIdentifier | public ObjectIdentifier(int values) throws IOException(Code) | | Constructs an object ID from an array of integers. This
is used to construct constant object IDs. The first component
should be 0,1 or 2 and the second component should be greater
than or equal to 0 and less than or equal to 39.
|
ObjectIdentifier | public ObjectIdentifier(DerInputStream in) throws IOException(Code) | | 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.
Parameters: in - DER-encoded data holding an object ID exception: IOException - indicates a decoding error |
equals | public boolean equals(Object obj)(Code) | | Compares this identifier with another, for equality.
true iff the names are identical. |
hashCode | public int hashCode()(Code) | | |
newInternal | public static ObjectIdentifier newInternal(int[] values)(Code) | | Create a new ObjectIdentifier for internal use. The values are
neither checked nor cloned.
|
precedes | public boolean precedes(ObjectIdentifier other)(Code) | | Compares this identifier with another, for sorting purposes.
An identifier does not precede itself.
Parameters: other - identifer that may precede this one. true iff other precedes this onein a particular sorting order. |
toString | public String toString()(Code) | | 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.
|
|
|