Package com.unboundid.util.ssl
Class SSLSocketVerifier
java.lang.Object
com.unboundid.util.ssl.SSLSocketVerifier
- Direct Known Subclasses:
HostNameSSLSocketVerifier,TrustAllSSLSocketVerifier
@Extensible
@ThreadSafety(level=INTERFACE_THREADSAFE)
public abstract class SSLSocketVerifier
extends Object
This class defines an API that will be invoked immediately after establishing
a connection using
SSLSocket (whether by establishing a connection
that is initially secure or by wrapping an existing insecure connection in an
SSLSocket). It may be used to terminate the connection if it is
determined that the connection should not be trusted for some reason.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidverifySSLSocket(String host, int port, SSLSocket sslSocket) Verifies that the providedSSLSocketis acceptable and the connection should be allowed to remain established.
-
Constructor Details
-
SSLSocketVerifier
public SSLSocketVerifier()
-
-
Method Details
-
verifySSLSocket
public abstract void verifySSLSocket(@NotNull String host, int port, @NotNull SSLSocket sslSocket) throws LDAPException Verifies that the providedSSLSocketis acceptable and the connection should be allowed to remain established.- Parameters:
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.sslSocket- TheSSLSocketthat was created and should be verified.- Throws:
LDAPException- If a problem is identified that should prevent the providedSSLSocketfrom remaining established.
-