public class GeneralName
extends java.lang.Object
implements java.io.Externalizable
Modifier and Type | Class and Description |
---|---|
static class |
GeneralName.Type
The underlying name type of a
GeneralName . |
Constructor and Description |
---|
GeneralName()
Creates a new empty instance.
|
GeneralName(GeneralName.Type type,
ASN1Object value) |
GeneralName(java.io.InputStream is) |
GeneralName(X500Name value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether or not the given object is equal
to this
GeneralName object. |
GeneralName.Type |
getType() |
java.util.List<?> |
getTypeAndValue()
return the GeneralName in a format required by
X509Certificate.getSubjectAlternativeNames
|
ASN1Object |
getValue() |
void |
input(java.io.InputStream is) |
static java.lang.String |
ipV4BytesToString(byte[] b) |
static java.lang.String |
ipV6BytesToString(byte[] bb) |
int |
length() |
void |
output(java.io.OutputStream os) |
void |
readExternal(java.io.ObjectInput is) |
static byte[] |
stringToIPv4Bytes(java.lang.String s) |
static byte[] |
stringToIPv6Bytes(java.lang.String s) |
java.lang.String |
toString()
Returns the string representation of the underlying name as returned by
that type's
toString() method. |
void |
writeExternal(java.io.ObjectOutput os) |
public GeneralName()
public GeneralName(GeneralName.Type type, ASN1Object value)
public GeneralName(X500Name value)
public GeneralName(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public GeneralName.Type getType()
public ASN1Object getValue()
public java.util.List<?> getTypeAndValue()
public boolean equals(java.lang.Object obj)
GeneralName
object.equals
in class java.lang.Object
true
if
obj
is a GeneralName
with
type
and value
equal to this
object's; OR
obj
is an ASN1Object
equal
to this object's value
;
false
.public java.lang.String toString()
toString()
method.toString
in class java.lang.Object
public static java.lang.String ipV4BytesToString(byte[] b) throws java.io.IOException
java.io.IOException
public static java.lang.String ipV6BytesToString(byte[] bb) throws java.io.IOException
java.io.IOException
public static byte[] stringToIPv4Bytes(java.lang.String s) throws java.io.IOException
java.io.IOException
public static byte[] stringToIPv6Bytes(java.lang.String s) throws java.io.IOException
java.io.IOException
public void input(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public int length()
public void writeExternal(java.io.ObjectOutput os) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput is) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException