Name

SSLHandshakeException

Synopsis

Signals that the SSL handshake failed for some reason other than failed authentication (see SSLPeerUnverifiedException). For example, it may be thrown because the client and server count not agree on a mutually-acceptable cipher suite. When this exception is thrown, the SSLSocket object is no longer usable.

javax.net.ssl.SSLHandshakeException

Figure 18-7. javax.net.ssl.SSLHandshakeException

public class SSLHandshakeException extends SSLException {
// Public Constructors
     public SSLHandshakeException(String reason);  
}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.