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

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

public class OtherName
extends Object
implements GeneralNameInterface

This class represents the OtherName as required by the GeneralNames ASN.1 object. It supplies the generic framework to allow specific Other Name types. The ASN.1 definition for OtherName is:

 OtherName ::= SEQUENCE {
     type-id    OBJECT IDENTIFIER,
     value      [0] EXPLICIT ANY DEFINED BY type-id
 }
 

Version:
1.2
Author:
Hemma Prafullchandra

Constructor Summary
OtherName(DerValue derValue)
          Create the OtherName object from the passed encoded Der value.
 
Method Summary
 void encode(DerOutputStream out)
          Encode the Other 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

OtherName

public OtherName(DerValue derValue)
          throws IOException
Create the OtherName object from the passed encoded Der value.
Parameters:
derValue - the encoded DER OtherName.
Throws:
IOException - on error.
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 Other name into the DerOutputStream.
Specified by:
encode in interface GeneralNameInterface
Parameters:
out - the DER stream to encode the Other-Name to.
Throws:
IOException - on encoding errors.

toString

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