public class GeneralName
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object, 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, oracle.security.crypto.asn1.ASN1Object value) |
GeneralName(GeneralName.Type type, java.lang.String 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
|
oracle.security.crypto.asn1.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, oracle.security.crypto.asn1.ASN1Object value)
public GeneralName(GeneralName.Type type, java.lang.String value)
public GeneralName(X500Name value)
public GeneralName(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic GeneralName.Type getType()
public oracle.security.crypto.asn1.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
input in interface oracle.security.crypto.util.Streamablejava.io.IOException
public void output(java.io.OutputStream os)
throws java.io.IOException
output in interface oracle.security.crypto.util.Streamablejava.io.IOExceptionpublic int length()
length in interface oracle.security.crypto.util.Streamable
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