public class HostnameUnverifiedException extends WebSocketException
WebSocketException.getError() of this class returns HOSTNAME_UNVERIFIED.
See Verify that certificate is valid for server hostname (#107).
| Constructor and Description |
|---|
HostnameUnverifiedException(SSLSocket socket,
String hostname)
Constructor with the SSL socket and the expected hostname.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHostname()
Get the expected hostname.
|
SSLSocket |
getSSLSocket()
Get the SSL socket against which the hostname verification failed.
|
getErroraddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringCopyright © 2021. All rights reserved.