|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ietf.jgss.Oid
public class Oid
This class represents Universal Object Identifiers (Oids) and their associated operations.
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.
| Constructor Summary | |
|---|---|
Oid(byte[] derOid)
Creates an Oid object from its DER encoding. |
|
Oid(InputStream derOid)
Creates an Oid object from its DER encoding. |
|
Oid(String strOid)
Creates an Oid object from a string representation of its integer components (e.g. "1.2.840.113554.1.2.2"). |
|
| Method Summary | |
|---|---|
boolean |
containedIn(Oid[] oids)
A utility method to test if an Oid object is contained within the supplied Oid object array. |
boolean |
equals(Object o)
equals compares this object to another object. |
byte[] |
getDER()
Returns the full ASN.1 DER encoding for this oid object, which includes the tag and length. |
int |
hashCode()
hashCode returns a hash code for this object. |
String |
toString()
Returns a string representation of the oid's integer components in dot separated notation (e.g. "1.2.840.113554.1.2.2"). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Oid(String strOid)
throws GSSException
strOid - The string representation for the oid.
GSSException - If the argument is badly formed.
public Oid(InputStream derOid)
throws GSSException
derOid - Stream containing the DER encoded oid.
GSSException - If the DER stream is badly formed, or if the
input stream throws an exception.
public Oid(byte[] derOid)
throws GSSException
derOid - Byte array storing a DER encoded oid.
GSSException - If the DER bytes are badly formed.| Method Detail |
|---|
public String toString()
toString in class Object
public byte[] getDER()
throws GSSException
GSSException - If encoding fails.public boolean containedIn(Oid[] oids)
oids - An array of oids to search.
public boolean equals(Object o)
ObjectEquals must be symmetric (a.equals(b) == b.equals(a)), reflexive (a.equals(a)==true) and transitive (a.equals(b) && b.equals(c) IMPLIES (a.equals(c))) and not change over time (a.equals(b) == a.equals(b)). a.equals(null) should always return false.
If a.equals(b) is true for two objects a and b, then a.hashCode()==b.hashCode() must hold.
The default implementation of equals returns this==other.
equals in class Objecto - the other object.
public int hashCode()
ObjectThe default implementation returns System.identityHashCode(this).
hashCode in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||