Skip navigation links

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

E10674-03


oracle.security.crypto.cert.ext
Class SubjectAltNameExtension

java.lang.Object
  extended by oracle.security.crypto.cert.X509Extension
      extended by oracle.security.crypto.cert.ext.SubjectAltNameExtension

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

public class SubjectAltNameExtension
extends X509Extension

Represents the certificate extension Subject Alternative Name from RFC 2459. This extension is critical for conforming CAs if the certificate subject name is empty.

See Also:
Serialized Form

Field Summary

 

Fields inherited from class oracle.security.crypto.cert.X509Extension
id_netscape_ce, id_netscape_ce_type, id_set_ce, id_set_ce_type, isDecoded

 

Constructor Summary
SubjectAltNameExtension()
          Create a new extension with the appropriate OID type.
SubjectAltNameExtension(GeneralName subjAltName)
          Creates a new extension with the specified alternative name.
SubjectAltNameExtension(GeneralName subjAltName, boolean critical)
          Creates a new extension with the specified alternative name.
SubjectAltNameExtension(java.io.InputStream is)
           
SubjectAltNameExtension(java.util.List<GeneralName> subjAltName)
          Creates a new extension with the specified alternative name.
SubjectAltNameExtension(java.util.List<GeneralName> subjAltName, boolean critical)
          Creates a new extension with the specified alternative name.
SubjectAltNameExtension(java.util.Vector<GeneralName> subjAltName)
          Deprecated. Use SubjectAltNameExtension(List)
SubjectAltNameExtension(java.util.Vector<GeneralName> subjAltName, boolean critical)
          Deprecated. Use SubjectAltNameExtension(List, boolean)

 

Method Summary
 void addSubjectAltName(GeneralName name)
           
 java.util.ArrayList<GeneralName> getSubjectAltName()
          Gets the subject alternative name of this extension.
 java.util.Enumeration<GeneralName> subjectAltName()
          Deprecated. Use getSubjectAltName()
 java.lang.String toString()
          Returns a string representation of this object.

 

Methods inherited from class oracle.security.crypto.cert.X509Extension
getCritical, getType, getValue, input, inputInstance, isRecognized, length, output, readExternal, setCritical, setValue, writeExternal

 

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

 

Constructor Detail

SubjectAltNameExtension

public SubjectAltNameExtension()
Create a new extension with the appropriate OID type.

Note: An object created using this constructor may not be in a valid state. This constructor is intended primarily for use in conjunction with the X509Extension.input(java.io.InputStream) method.


SubjectAltNameExtension

public SubjectAltNameExtension(GeneralName subjAltName)
Creates a new extension with the specified alternative name. Extension is non-critical.
Parameters:
subjAltName - The subject alternative name.

SubjectAltNameExtension

public SubjectAltNameExtension(GeneralName subjAltName,
                               boolean critical)
Creates a new extension with the specified alternative name.
Parameters:
subjAltName - The subject alternative name.
critical - true if this extension is critical, false otherwise.

SubjectAltNameExtension

public SubjectAltNameExtension(java.util.Vector<GeneralName> subjAltName)
Deprecated. Use SubjectAltNameExtension(List)
Creates a new extension with the specified alternative name. Extension is non-critical.
Parameters:
subjAltName - A Vector of GeneralNames for the subject alternative name.

SubjectAltNameExtension

public SubjectAltNameExtension(java.util.List<GeneralName> subjAltName)
Creates a new extension with the specified alternative name. Extension is non-critical.
Parameters:
subjAltName - A List of GeneralNames for the subject alternative name.

SubjectAltNameExtension

public SubjectAltNameExtension(java.util.Vector<GeneralName> subjAltName,
                               boolean critical)
Deprecated. Use SubjectAltNameExtension(List, boolean)
Creates a new extension with the specified alternative name.
Parameters:
subjAltName - A Vector of GeneralNames for the subject alternative name.
critical - true if this extension is critical, false otherwise.

SubjectAltNameExtension

public SubjectAltNameExtension(java.util.List<GeneralName> subjAltName,
                               boolean critical)
Creates a new extension with the specified alternative name.
Parameters:
subjAltName - A List of GeneralNames for the subject alternative name.
critical - true if this extension is critical, false otherwise.

SubjectAltNameExtension

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

Method Detail

subjectAltName

public java.util.Enumeration<GeneralName> subjectAltName()
Deprecated. Use getSubjectAltName()
Gets the subject alternative name of this extension.
Returns:
An Enumeration of GeneralNames representing the subject alternative name.

getSubjectAltName

public java.util.ArrayList<GeneralName> getSubjectAltName()
Gets the subject alternative name of this extension.
Returns:
An ArrayList of GeneralNames representing the subject alternative name.

addSubjectAltName

public void addSubjectAltName(GeneralName name)

toString

public java.lang.String toString()
Description copied from class: X509Extension
Returns a string representation of this object.
Overrides:
toString in class X509Extension
Returns:
a string representation

Skip navigation links

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

E10674-03


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