|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ietf.jgss.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(java.io.InputStream derOid)
Creates an Oid object from its DER encoding. |
|
Oid(java.lang.String strOid)
Creates an Oid object from a string representation of its integer components (e.g. |
Method Summary | |
boolean |
containedIn(Oid[] oids)
An utility method to test if an Oid object is contained within the supplied Oid object array. |
boolean |
equals(java.lang.Object obj)
Returns "true" if the two Oid objects represent the same oid value. |
byte[] |
getDER()
Returns the full ASN.1 DER encoding for this oid object, which includes the tag and length. |
int |
hashCode()
|
java.lang.String |
toString()
Returns a string representation of the oid's integer components in dot separated notation (e.g. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Oid(java.lang.String strOid) throws GSSException
strOid
- The string representation for the oid.
GSSException
- may be thrown when the string is incorrectly
formattedpublic Oid(java.io.InputStream derOid) throws GSSException
derOid
- Stream containing the DER encoded oid.public Oid(byte[] derOid) throws GSSException
derOid
- Byte array storing a DER encoded oid.Method Detail |
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
obj
- Another Oid object to compare with.public int hashCode()
public byte[] getDER()
public boolean containedIn(Oid[] oids)
oids
- An array of oids to search.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |