@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class GeneralNames extends java.lang.Object implements java.io.Serializable
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 }
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.
|
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.
|
@NotNull public java.util.List<ObjectPair<OID,ASN1Element>> getOtherNames()
@NotNull public java.util.List<java.lang.String> getRFC822Names()
@NotNull public java.util.List<java.lang.String> getDNSNames()
@NotNull public java.util.List<ASN1Element> getX400Addresses()
@NotNull public java.util.List<DN> getDirectoryNames()
@NotNull public java.util.List<ASN1Element> getEDIPartyNames()
@NotNull public java.util.List<java.lang.String> getUniformResourceIdentifiers()
@NotNull public java.util.List<java.net.InetAddress> getIPAddresses()
@NotNull public java.util.List<OID> getRegisteredIDs()
@NotNull public java.lang.String toString()
toString
in class java.lang.Object