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.
|
getError
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Copyright © 2021. All rights reserved.