Top Description Fields Constructors
javax.net.ssl

public Class SSLHandshakeException

extends SSLException
Class Inheritance

Indicates that the client and server could not negotiate the desired level of security. The connection is no longer usable.
Author
David Brownell
Since
1.4

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
SSLHandshakeException(String
describes the problem.
reason
)

Constructs an exception reporting an error found by an SSL subsystem during handshaking.

public
SSLHandshakeException(String
the detail message (which is saved for later retrieval by the getMessage() method).
message
,
Throwable
the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
cause
)

Creates a SSLHandshakeException with the specified detail message and cause.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.net.ssl.SSLException.serialVersionUID.

Annotations
@Serial

Constructor Detail

SSLHandshakeExceptionback to summary
public SSLHandshakeException(String reason)

Constructs an exception reporting an error found by an SSL subsystem during handshaking.

Parameters
reason:String

describes the problem.

SSLHandshakeExceptionback to summary
public SSLHandshakeException(String message, Throwable cause)

Creates a SSLHandshakeException with the specified detail message and cause.

Parameters
message:String

the detail message (which is saved for later retrieval by the getMessage() method).

cause:Throwable

the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

Since
19