Skip navigation links

Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10674-05


oracle.security.crypto.cert
Class GeneralName

java.lang.Object
  extended by oracle.security.crypto.cert.GeneralName

All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, oracle.security.crypto.asn1.ASN1Object, oracle.security.crypto.util.Streamable

public class GeneralName
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object, java.io.Externalizable

The X.509 GeneralName type, as defined in RFC 2459.

See Also:
Serialized Form

Nested Class Summary
static class GeneralName.Type
          The underlying name type of a GeneralName.

 

Constructor Summary
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)
           

 

Method Summary
 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)
           

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

GeneralName

public GeneralName()
Creates a new empty instance. This constructor is to be used with serialization or with the input method.

GeneralName

public GeneralName(GeneralName.Type type,
                   oracle.security.crypto.asn1.ASN1Object value)

GeneralName

public GeneralName(GeneralName.Type type,
                   java.lang.String value)

GeneralName

public GeneralName(X500Name value)

GeneralName

public GeneralName(java.io.InputStream is)
            throws java.io.IOException
Throws:
java.io.IOException

Method Detail

getType

public GeneralName.Type getType()

getValue

public oracle.security.crypto.asn1.ASN1Object getValue()

getTypeAndValue

public java.util.List<?> getTypeAndValue()
return the GeneralName in a format required by X509Certificate.getSubjectAlternativeNames
Returns:

equals

public boolean equals(java.lang.Object obj)
Indicates whether or not the given object is equal to this GeneralName object.
Overrides:
equals in class java.lang.Object
Returns:
true if
  1. obj is a GeneralName with type and value equal to this object's; OR
  2. obj is an ASN1Object equal to this object's value;
otherwise false.

toString

public java.lang.String toString()
Returns the string representation of the underlying name as returned by that type's toString() method.
Overrides:
toString in class java.lang.Object

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Specified by:
input in interface oracle.security.crypto.util.Streamable
Throws:
java.io.IOException

output

public void output(java.io.OutputStream os)
            throws java.io.IOException
Specified by:
output in interface oracle.security.crypto.util.Streamable
Throws:
java.io.IOException

length

public int length()
Specified by:
length in interface oracle.security.crypto.util.Streamable

writeExternal

public void writeExternal(java.io.ObjectOutput os)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput is)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

Skip navigation links

Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10674-05


Copyright © 2005, 2013, Oracle. All rights reserved.