public class EchConfigMismatchException extends javax.net.ssl.SSLException
Before accessing the retry configuration, clients
must
call
#getPublicHostname()
and verify that the hostname matches the connection hostname (using their preferred
javax.net.ssl.HostnameVerifier
). If the returned hostname is
null
, any provided retry
configuration must be ignored.
Clients can then attempt to establish a new connection, using the provided retry EchConfigList , if available. A retry EchConfigList may not be available if the server has not provided any.
public EchConfigMismatchException(String message)
EchConfigMismatchException
.| Parameters | |
|---|---|
| message | the detail message. |
public EchConfigMismatchException(String message, String publicName, EchConfigList echRetryConfigList)
EchConfigMismatchException
.| Parameters | |
|---|---|
| message | the detail message. |
| publicName | the hostname that must be used for verification, or
null
if the
server did not provide a valid public name. |
| echRetryConfigList | the
EchConfigList
provided by the server for retrying the
connection, or
null
if no retry configuration was set by the server. |
public EchConfigList getRetryConfigList()
null
if no retry configuration was set by the server.
Prior to reading this value, the client
must
verify that the certificate is valid for
the name returned by
#getPublicHostname()
.public String getPublicHostname()
public boolean hasRetryConfigList()
true
if a retry
EchConfigList
is available, false otherwise.