com.ibm.security12.sun.security.x509
Class OIDName

java.lang.Object
  |
  +--com.ibm.security12.sun.security.x509.OIDName

public class OIDName
extends Object
implements GeneralNameInterface

This class implements the OIDName as required by the GeneralNames ASN.1 object.

Version:
1.5
Author:
Amit Kapoor, Hemma Prafullchandra
See Also:
GeneralName, GeneralNames, GeneralNameInterface

Constructor Summary
OIDName(DerValue derValue)
          Create the OIDName object from the passed encoded Der value.
OIDName(ObjectIdentifier oid)
          Create the OIDName object with the specified name.
 
Method Summary
 void encode(DerOutputStream out)
          Encode the OID name into the DerOutputStream.
 int getType()
          Return the type of the GeneralName.
 String toString()
          Convert the name into user readable string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OIDName

public OIDName(DerValue derValue)
        throws IOException
Create the OIDName object from the passed encoded Der value.
Parameters:
derValue - the encoded DER OIDName.
Throws:
IOException - on error.

OIDName

public OIDName(ObjectIdentifier oid)
Create the OIDName object with the specified name.
Parameters:
name - the OIDName.
Method Detail

getType

public int getType()
Return the type of the GeneralName.
Specified by:
getType in interface GeneralNameInterface

encode

public void encode(DerOutputStream out)
            throws IOException
Encode the OID name into the DerOutputStream.
Specified by:
encode in interface GeneralNameInterface
Parameters:
out - the DER stream to encode the OIDName to.
Throws:
IOException - on encoding errors.

toString

public String toString()
Convert the name into user readable string.
Overrides:
toString in class Object