Package com.unboundid.util.ssl.cert
Class GeneralNames
- java.lang.Object
-
- com.unboundid.util.ssl.cert.GeneralNames
-
- All Implemented Interfaces:
java.io.Serializable
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class GeneralNames extends java.lang.Object implements java.io.Serializable
This class provides a data structure that represents aGeneralNames
element that may appear in a number of X.509 certificate extensions, includingSubjectAlternativeNameExtension
,IssuerAlternativeNameExtension
,AuthorityKeyIdentifierExtension
, andCRLDistributionPointsExtension
. TheGeneralNames
element has the following encoding (as described in RFC 5280 section 4.2.1.6):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 }
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.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.java.lang.String
toString()
Retrieves a string representation of this general names element.void
toString(java.lang.StringBuilder buffer)
Appends a string representation of this general names element to the provided buffer.
-
-
-
Method Detail
-
getOtherNames
@NotNull public java.util.List<ObjectPair<OID,ASN1Element>> getOtherNames()
Retrieves the otherName elements from the extension.- Returns:
- The otherName elements from the extension.
-
getRFC822Names
@NotNull public java.util.List<java.lang.String> getRFC822Names()
Retrieves the RFC 822 names (email addresses) from the extension.- Returns:
- The RFC 822 names from the extension.
-
getDNSNames
@NotNull public java.util.List<java.lang.String> getDNSNames()
Retrieves the DNS names from the extension.- Returns:
- The DNS names from the extension.
-
getX400Addresses
@NotNull public java.util.List<ASN1Element> getX400Addresses()
Retrieves the x400Address elements from the extension.- Returns:
- The x400Address elements from the extension.
-
getDirectoryNames
@NotNull public java.util.List<DN> getDirectoryNames()
Retrieves the directory names from the extension.- Returns:
- The directory names from the extension.
-
getEDIPartyNames
@NotNull public java.util.List<ASN1Element> getEDIPartyNames()
Retrieves the ediPartyName elements from the extensions.- Returns:
- The ediPartyName elements from the extension.
-
getUniformResourceIdentifiers
@NotNull public java.util.List<java.lang.String> getUniformResourceIdentifiers()
Retrieves the uniform resource identifiers (URIs) from the extension.- Returns:
- The URIs from the extension.
-
getIPAddresses
@NotNull public java.util.List<java.net.InetAddress> getIPAddresses()
Retrieves the IP addresses from the extension.- Returns:
- The IP addresses from the extension.
-
getRegisteredIDs
@NotNull public java.util.List<OID> getRegisteredIDs()
Retrieves the registeredID elements from the extension.- Returns:
- The registeredID elements from the extension.
-
toString
@NotNull public java.lang.String toString()
Retrieves a string representation of this general names element.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of this general names element.
-
-