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:
java.io.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 theGeneralAlternativeNameExtension
class for implementation details and the value encoding.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static OID
SUBJECT_ALTERNATIVE_NAME_OID
The OID (2.5.29.17) for subject alternative name extensions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExtensionName()
Retrieves the name for this extension.void
toString(java.lang.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, toString
-
Methods inherited from class com.unboundid.util.ssl.cert.X509CertificateExtension
getOID, getValue, isCritical, toString
-
-
-
-
Field Detail
-
SUBJECT_ALTERNATIVE_NAME_OID
@NotNull public static final OID SUBJECT_ALTERNATIVE_NAME_OID
The OID (2.5.29.17) for subject alternative name extensions.
-
-
Method Detail
-
getExtensionName
@NotNull public java.lang.String getExtensionName()
Retrieves the name for this extension.- Overrides:
getExtensionName
in classX509CertificateExtension
- Returns:
- The name for this extension.
-
toString
public void toString(@NotNull java.lang.StringBuilder buffer)
Appends a string representation of this certificate extension to the provided buffer.- Overrides:
toString
in classX509CertificateExtension
- Parameters:
buffer
- The buffer to which the information should be appended.
-
-