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) |
int |
length() |
void |
output(java.io.OutputStream os) |
void |
readExternal(java.io.ObjectInput is) |
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.IOExceptionpublic 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.Objecttrue if
obj is a GeneralName with type and value equal to this object's; ORobj is an ASN1Object equal to this object's value;false.public java.lang.String toString()
toString() method.toString in class java.lang.Object
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.IOExceptionpublic int length()
public void writeExternal(java.io.ObjectOutput os)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput is)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundException