@NotExtensible @ThreadSafety(level=COMPLETELY_THREADSAFE) public abstract class GeneralAlternativeNameExtension extends X509CertificateExtension
SubjectAlternativeNameExtension and
 IssuerAlternativeNameExtension extensions as described in
 RFC 5280 sections 4.2.1.6
 and 4.2.1.7.
 
   SubjectAltName ::= GeneralNames
   IssuerAltName ::= GeneralNames
   GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
   GeneralName ::= CHOICE {
        otherName                       [0]     OtherName,
        rfc822Name                      [1]     IA5String,
        dNSName                         [2]     IA5String,
        x400Address                     [3]     ORAddress,
        directoryName                   [4]     Name,
        ediPartyName                    [5]     EDIPartyName,
        uniformResourceIdentifier       [6]     IA5String,
        iPAddress                       [7]     OCTET STRING,
        registeredID                    [8]     OBJECT IDENTIFIER }
   OtherName ::= SEQUENCE {
        type-id    OBJECT IDENTIFIER,
        value      [0] EXPLICIT ANY DEFINED BY type-id }
   EDIPartyName ::= SEQUENCE {
        nameAssigner            [0]     DirectoryString OPTIONAL,
        partyName               [1]     DirectoryString }
 | Modifier | Constructor and Description | 
|---|---|
protected  | 
GeneralAlternativeNameExtension(OID oid,
                               boolean isCritical,
                               GeneralNames generalNames)
Creates a new general alternative name extension with the provided
 information. 
 | 
protected  | 
GeneralAlternativeNameExtension(X509CertificateExtension extension)
Creates a new general alternative name extension from the provided generic
 extension. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.List<DN> | 
getDirectoryNames()
Retrieves the directory names from the extension. 
 | 
java.util.List<java.lang.String> | 
getDNSNames()
Retrieves the DNS names from the extension. 
 | 
java.util.List<ASN1Element> | 
getEDIPartyNames()
Retrieves the ediPartyName elements from the extensions. 
 | 
GeneralNames | 
getGeneralNames()
Retrieves the  
GeneralNames object for this alternative name
 extension. | 
java.util.List<java.net.InetAddress> | 
getIPAddresses()
Retrieves the IP addresses from the extension. 
 | 
java.util.List<ObjectPair<OID,ASN1Element>> | 
getOtherNames()
Retrieves the otherName elements from the extension. 
 | 
java.util.List<OID> | 
getRegisteredIDs()
Retrieves the registeredID elements from the extension. 
 | 
java.util.List<java.lang.String> | 
getRFC822Names()
Retrieves the RFC 822 names (email addresses) from the extension. 
 | 
java.util.List<java.lang.String> | 
getUniformResourceIdentifiers()
Retrieves the uniform resource identifiers (URIs) from the extension. 
 | 
java.util.List<ASN1Element> | 
getX400Addresses()
Retrieves the x400Address elements from the extension. 
 | 
protected void | 
toString(java.lang.String extensionName,
        java.lang.StringBuilder buffer)
Appends a string representation of this extension to the provided buffer. 
 | 
getExtensionName, getOID, getValue, isCritical, toString, toStringprotected GeneralAlternativeNameExtension(@NotNull OID oid, boolean isCritical, @NotNull GeneralNames generalNames) throws CertException
oid - The OID for this extension.isCritical - Indicates whether this extension should be
                       considered critical.generalNames - The general names for inclusion in this extension.CertException - If a problem is encountered while encoding the
                         value for this extension.protected GeneralAlternativeNameExtension(@NotNull X509CertificateExtension extension) throws CertException
extension - The extension to decode as a general alternative name
                    extension.CertException - If the provided extension cannot be decoded as a
                         general alternative name extension.@NotNull public final GeneralNames getGeneralNames()
GeneralNames object for this alternative name
 extension.GeneralNames object for this alternative name
          extension.@NotNull public final java.util.List<ObjectPair<OID,ASN1Element>> getOtherNames()
@NotNull public final java.util.List<java.lang.String> getRFC822Names()
@NotNull public final java.util.List<java.lang.String> getDNSNames()
@NotNull public final java.util.List<ASN1Element> getX400Addresses()
@NotNull public final java.util.List<DN> getDirectoryNames()
@NotNull public final java.util.List<ASN1Element> getEDIPartyNames()
@NotNull public final java.util.List<java.lang.String> getUniformResourceIdentifiers()
@NotNull public final java.util.List<java.net.InetAddress> getIPAddresses()
@NotNull public final java.util.List<OID> getRegisteredIDs()
protected void toString(@NotNull java.lang.String extensionName, @NotNull java.lang.StringBuilder buffer)
extensionName - The name to use for this extension.buffer - The buffer to which the information should be
                        appended.