Oids are hierarchically globally-interpretable identifiers used within the GSS-API framework to identify mechanisms and name formats.
The structure and encoding of Oids is defined in ISOIEC-8824 and ISOIEC-8825. For example the Oid representation of Kerberos V5 mechanism is "1.2.840.113554.1.2.2"
The GSSName name class contains public static Oid objects representing the standard name types defined in GSS-API.
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private final ObjectIdentifier |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Oid(InputStream
stream containing the DER encoded oid derOid)Creates an Oid object from its ASN.1 DER encoding. |
| public | Oid(byte[]
byte array containing the DER encoded oid data)Creates an Oid object from its ASN.1 DER encoding. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the array contains this Oid value, false otherwisethe array of Oid's to search oids)A utility method to test if this Oid value is contained within the supplied Oid array. |
| public boolean | Returns: true if the two Oid objects represent the same
value, false otherwise.the Oid object that has to be compared to this one other)Overrides java. Tests if two Oid objects represent the same Object identifier value. |
| public byte[] | Returns: byte array containing the DER encoding of this oid object.Returns the full ASN.1 DER encoding for this oid object, which includes the tag and length. |
| pack-priv static Oid | |
| public int | Returns: a hashcode value for this OidOverrides java. Returns a hashcode value for this Oid. |
| public String | Returns: string representation in the following format: "1.2.3.4.5"Overrides java. Returns a string representation of the oid's integer components in dot separated notation. |
| derEncoding | back to summary |
|---|---|
| private byte[] derEncoding | |
| oid | back to summary |
|---|---|
| private final ObjectIdentifier oid | |
| Oid | back to summary |
|---|---|
| public Oid(String strOid) throws GSSException Constructs an Oid object from a string representation of its integer components.
| |
| Oid | back to summary |
|---|---|
| public Oid(InputStream derOid) throws GSSException Creates an Oid object from its ASN.1 DER encoding. This refers to the full encoding including tag and length. The structure and encoding of Oids is defined in ISOIEC-8824 and ISOIEC-8825. This method is identical in functionality to its byte array counterpart.
| |
| Oid | back to summary |
|---|---|
| public Oid(byte[] data) throws GSSException Creates an Oid object from its ASN.1 DER encoding. This refers to the full encoding including tag and length. The structure and encoding of Oids is defined in ISOIEC-8824 and ISOIEC-8825. This method is identical in functionality to its InputStream counterpart.
| |
| containedIn | back to summary |
|---|---|
| public boolean containedIn(Oid[] oids) A utility method to test if this Oid value is contained within the supplied Oid array.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Tests if two Oid objects represent the same Object identifier value. | |
| getDER | back to summary |
|---|---|
| public byte[] getDER() throws GSSException Returns the full ASN.1 DER encoding for this oid object, which includes the tag and length.
| |
| getInstance | back to summary |
|---|---|
| pack-priv static Oid getInstance(String strOid) Only for calling by initializators used with declarations. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hashcode value for this Oid.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of the oid's integer components in dot separated notation.
| |