Package com.unboundid.util.ssl.cert
Class SubjectAlternativeNameExtension
java.lang.Object
com.unboundid.util.ssl.cert.X509CertificateExtension
com.unboundid.util.ssl.cert.GeneralAlternativeNameExtension
com.unboundid.util.ssl.cert.SubjectAlternativeNameExtension
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class SubjectAlternativeNameExtension
extends GeneralAlternativeNameExtension
This class provides an implementation of the subject alternative name X.509
certificate extension as described in
RFC 5280 section 4.2.1.6.
It can provide additional information about the entity that is being
certified, including alternate DNS hostnames or IP addresses that may be used
to access the server, email addresses or DNs of end users, URIs of services,
etc. This information may be used in the course of determining whether to
trust a peer certificate.
The OID for this extension is 2.5.29.17. See the
The OID for this extension is 2.5.29.17. See the
GeneralAlternativeNameExtension class for implementation details and
the value encoding.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OIDThe OID (2.5.29.17) for subject alternative name extensions. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the name for this extension.voidtoString(StringBuilder buffer) Appends a string representation of this certificate extension to the provided buffer.Methods inherited from class com.unboundid.util.ssl.cert.GeneralAlternativeNameExtension
getDirectoryNames, getDNSNames, getEDIPartyNames, getGeneralNames, getIPAddresses, getOtherNames, getRegisteredIDs, getRFC822Names, getUniformResourceIdentifiers, getX400Addresses, toStringMethods inherited from class com.unboundid.util.ssl.cert.X509CertificateExtension
getOID, getValue, isCritical, toString
-
Field Details
-
SUBJECT_ALTERNATIVE_NAME_OID
The OID (2.5.29.17) for subject alternative name extensions.
-
-
Method Details
-
getExtensionName
Retrieves the name for this extension.- Overrides:
getExtensionNamein classX509CertificateExtension- Returns:
- The name for this extension.
-
toString
Appends a string representation of this certificate extension to the provided buffer.- Overrides:
toStringin classX509CertificateExtension- Parameters:
buffer- The buffer to which the information should be appended.
-