SSLPeerUnverifiedException

  • SSLPeerUnverifiedException signals that the server's identity wasn't confirmed during an SSL handshake.

  • This exception arises if the server lacks a certificate, the cipher suite doesn't support authentication, or if authentication wasn't part of the handshake.

  • It's a subclass of SSLException and includes a constructor to provide a reason for the verification failure.

  • The exception offers methods to get the reason for the failure and other standard exception handling functionalities inherited from its parent classes.

public class SSLPeerUnverifiedException extends SSLException

Indicates that the peer's identity has not been verified.

When the peer was not able to identify itself (for example; no certificate, the particular cipher suite being used does not support authentication, or no peer authentication was established during SSL handshaking) this exception is thrown.

Public Constructor Summary

SSLPeerUnverifiedException(String reason)
Constructs an exception reporting that the SSL peer's identity has not been verified.

Inherited Method Summary

Public Constructors

public SSLPeerUnverifiedException (String reason)

Constructs an exception reporting that the SSL peer's identity has not been verified.

Parameters
reason describes the problem.