Package eu.emi.security.authn.x509.impl
Interface HostnameMismatchCallback
Deprecated.
Implementation should react to the event when remote SSL peer's certificate is not matching its hostname.
- Author:
- K. Benedyczak
-
Method Summary
Modifier and TypeMethodDescriptionvoid
nameMismatch
(SSLSocket socket, X509Certificate peerCertificate, String hostName) Deprecated.This method is called whenever peer's host name is not matching the peer's certificate DN.
-
Method Details
-
nameMismatch
void nameMismatch(SSLSocket socket, X509Certificate peerCertificate, String hostName) throws SSLException Deprecated.This method is called whenever peer's host name is not matching the peer's certificate DN. The method can log the problem/display a popup with a question what to do or simply can close the socket.- Parameters:
socket
- the socketpeerCertificate
- peer's certificate (for convenience)hostName
- peer's host name (for convenience)- Throws:
SSLException
- SSL exception
-
HostnameMismatchCallback2
and the related classes