Save This Page
Home » openjdk-7 » org.ietf » jgss » [javadoc | source]
org.ietf.jgss
public class: Oid [javadoc | source]
java.lang.Object
   org.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:
 public Oid(String strOid) throws GSSException 
    Constructs an Oid object from a string representation of its integer components.
    Parameters:
    strOid - the dot separated string representation of the oid. For instance, "1.2.840.113554.1.2.2".
    Throws:
    GSSException - may be thrown when the string is incorrectly formatted
    exception: GSSException - may be thrown when the string is incorrectly formatted
 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.
    Parameters:
    derOid - stream containing the DER encoded oid
    Throws:
    GSSException - may be thrown when the DER encoding does not follow the prescribed format.
    exception: GSSException - may be thrown when the DER encoding does not follow the prescribed format.
 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 conterpart.
    Parameters:
    data - byte array containing the DER encoded oid
    Throws:
    GSSException - may be thrown when the DER encoding does not follow the prescribed format.
    exception: GSSException - may be thrown when the DER encoding does not follow the prescribed format.
Method from org.ietf.jgss.Oid Summary:
containedIn,   equals,   getDER,   getInstance,   hashCode,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.ietf.jgss.Oid Detail:
 public boolean containedIn(Oid[] oids) 
    A utility method to test if this Oid value is contained within the supplied Oid array.
 public boolean equals(Object other) 
    Tests if two Oid objects represent the same Object identifier value.
 public byte[] getDER() throws GSSException 
    Returns the full ASN.1 DER encoding for this oid object, which includes the tag and length.
 static Oid getInstance(String strOid) 
    Only for calling by initializators used with declarations.
 public int hashCode() 
    Returns a hashcode value for this Oid.
 public String toString() 
    Returns a string representation of the oid's integer components in dot separated notation.