Package com.unboundid.util.ssl.cert
Class GeneralNames
java.lang.Object
com.unboundid.util.ssl.cert.GeneralNames
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class GeneralNames
extends Object
implements Serializable
This class provides a data structure that represents a
GeneralNames
element that may appear in a number of X.509 certificate extensions,
including SubjectAlternativeNameExtension,
IssuerAlternativeNameExtension,
AuthorityKeyIdentifierExtension, and
CRLDistributionPointsExtension. The GeneralNames 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:
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the directory names from the extension.Retrieves the DNS names from the extension.Retrieves the ediPartyName elements from the extensions.Retrieves the IP addresses from the extension.Retrieves the otherName elements from the extension.Retrieves the registeredID elements from the extension.Retrieves the RFC 822 names (email addresses) from the extension.Retrieves the uniform resource identifiers (URIs) from the extension.Retrieves the x400Address elements from the extension.toString()Retrieves a string representation of this general names element.voidtoString(StringBuilder buffer) Appends a string representation of this general names element to the provided buffer.
-
Method Details
-
getOtherNames
Retrieves the otherName elements from the extension.- Returns:
- The otherName elements from the extension.
-
getRFC822Names
Retrieves the RFC 822 names (email addresses) from the extension.- Returns:
- The RFC 822 names from the extension.
-
getDNSNames
Retrieves the DNS names from the extension.- Returns:
- The DNS names from the extension.
-
getX400Addresses
Retrieves the x400Address elements from the extension.- Returns:
- The x400Address elements from the extension.
-
getDirectoryNames
Retrieves the directory names from the extension.- Returns:
- The directory names from the extension.
-
getEDIPartyNames
Retrieves the ediPartyName elements from the extensions.- Returns:
- The ediPartyName elements from the extension.
-
getUniformResourceIdentifiers
Retrieves the uniform resource identifiers (URIs) from the extension.- Returns:
- The URIs from the extension.
-
getIPAddresses
Retrieves the IP addresses from the extension.- Returns:
- The IP addresses from the extension.
-
getRegisteredIDs
Retrieves the registeredID elements from the extension.- Returns:
- The registeredID elements from the extension.
-
toString
Retrieves a string representation of this general names element. -
toString
Appends a string representation of this general names element to the provided buffer.- Parameters:
buffer- The buffer to which the information should be appended.
-