@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class TrustAllSSLSocketVerifier extends SSLSocketVerifier implements javax.net.ssl.HostnameVerifier
SSLSocketverifier that will blindly accept any
|Modifier and Type||Method and Description|
Retrieves a singleton instance of this SSL socket verifier.
Verifies that the provided hostname is acceptable for use with the negotiated SSL session.
Verifies that the provided
@NotNull public static TrustAllSSLSocketVerifier getInstance()
public void verifySSLSocket(@NotNull java.lang.String host, int port, @NotNull javax.net.ssl.SSLSocket sslSocket) throws LDAPException
SSLSocketis acceptable and the connection should be allowed to remain established.
host- The address to which the client intended the connection to be established.
port- The port to which the client intended the connection to be established.
SSLSocketthat should be verified.
LDAPException- If a problem is identified that should prevent the provided
SSLSocketfrom remaining established.
public boolean verify(@NotNull java.lang.String hostname, @NotNull javax.net.ssl.SSLSession session)
hostname- The address to which the client intended the connection to be established.
session- The SSL session that was established.