The SNIServerName
Class
An instance of the abstract SNIServerName
class represents a server name in
the Server Name Indication (SNI) Extension. It is instantiated by using the type and encoded value of the
specified server name. You can use the getType()
method to return the server name
type and the getEncoded()
method to return a copy of the encoded server name value.
The equals()
method can be used to check whether some other object is equal to this
server name. The hashCode()
method returns a hash code value for this server name.
To get a string representation of the server name, including the server name type and encoded server
name value, use the toString()
method.