Module java.base
Package javax.net.ssl

Class SNIServerName

java.lang.Object
javax.net.ssl.SNIServerName
Direct Known Subclasses:
SNIHostName

public abstract class SNIServerName extends Object
Instances of this class represent a server name in a Server Name Indication (SNI) extension.

The SNI extension is a feature that extends the SSL/TLS/DTLS protocols to indicate what server name the client is attempting to connect to during handshaking. See section 3, "Server Name Indication", of TLS Extensions (RFC 6066).

SNIServerName objects are immutable. Subclasses should not provide methods that can change the state of an instance once it has been created.

Since:
1.8
See Also: