public interface HostnameMismatchCallback
Modifier and Type | Method and Description |
---|---|
void |
nameMismatch(javax.net.ssl.SSLSocket socket,
java.security.cert.X509Certificate peerCertificate,
java.lang.String hostName)
This method is called whenever peer's host name is not matching the peer's
certificate DN.
|
void nameMismatch(javax.net.ssl.SSLSocket socket, java.security.cert.X509Certificate peerCertificate, java.lang.String hostName) throws javax.net.ssl.SSLException
socket
- the socketpeerCertificate
- peer's certificate (for convenience)hostName
- peer's host name (for convenience)javax.net.ssl.SSLException
- SSL exception