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
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.
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