public class OIDName extends java.lang.Object implements GeneralNameInterface
GeneralName
,
GeneralNames
,
GeneralNameInterface
,
Serialized FormNAME_ANY, NAME_DIRECTORY, NAME_DNS, NAME_EDI, NAME_IP, NAME_OID, NAME_RFC822, NAME_URI, NAME_X400
Constructor and Description |
---|
OIDName(DerValue derValue)
Create the OIDName object from the passed encoded Der value.
|
OIDName(ObjectIdentifier oid)
Create the OIDName object with the specified name.
|
OIDName(java.lang.String oid) |
Modifier and Type | Method and Description |
---|---|
void |
encode(DerOutputStream out)
Encode the OID name into the DerOutputStream.
|
int |
getType()
Return the type of the GeneralName.
|
java.lang.String |
toString()
Convert the name into user readable string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
validSingle, validSubtree
public OIDName(DerValue derValue) throws java.io.IOException
derValue
- the encoded DER OIDName.java.io.IOException
- on error.public OIDName(ObjectIdentifier oid)
oid
- the OIDName.public OIDName(java.lang.String oid)
public int getType()
getType
in interface GeneralNameInterface
public void encode(DerOutputStream out) throws java.io.IOException
encode
in interface GeneralNameInterface
out
- the DER stream to encode the OIDName to.java.io.IOException
- on encoding errors.public java.lang.String toString()
toString
in class java.lang.Object