public class OtherName extends java.lang.Object implements GeneralNameInterface
GeneralName,
GeneralNameInterface,
GeneralNames,
Serialized FormNAME_ANY, NAME_DIRECTORY, NAME_DNS, NAME_EDI, NAME_IP, NAME_OID, NAME_RFC822, NAME_URI, NAME_X400| Constructor and Description |
|---|
OtherName(byte[] data) |
OtherName(DerValue derValue)
Create the IPAddressName object from the passed encoded Der value.
|
OtherName(ObjectIdentifier oid,
byte[] data) |
OtherName(ObjectIdentifier oid,
byte tag,
java.lang.String value)
Constructs a string-based other name.
|
OtherName(ObjectIdentifier oid,
java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(java.io.InputStream in) |
void |
encode(DerOutputStream out)
Encode the IPAddress name into the DerOutputStream.
|
ObjectIdentifier |
getOID() |
int |
getType()
Return the type of the GeneralName.
|
byte[] |
getValue() |
java.lang.String |
toStr(byte[] data) |
java.lang.String |
toString()
Return a printable string of IPaddress
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitvalidSingle, validSubtreepublic OtherName(DerValue derValue) throws java.io.IOException
derValue - the encoded DER IPAddressName.java.io.IOException - on error.public OtherName(ObjectIdentifier oid, byte[] data) throws java.io.IOException
java.io.IOExceptionpublic OtherName(ObjectIdentifier oid, byte tag, java.lang.String value) throws java.io.IOException
java.io.IOExceptionpublic OtherName(ObjectIdentifier oid, java.lang.String value) throws java.io.IOException
java.io.IOExceptionpublic OtherName(byte[] data)
public ObjectIdentifier getOID()
public int getType()
getType in interface GeneralNameInterfacepublic void encode(DerOutputStream out) throws java.io.IOException
encode in interface GeneralNameInterfaceout - the DER stream to encode the IPAddressName to.java.io.IOException - on encoding errors.public void decode(java.io.InputStream in)
throws java.io.IOException
java.io.IOExceptionpublic byte[] getValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStr(byte[] data)