com.unboundid.util.ssl
Class TrustAllSSLSocketVerifier

java.lang.Object
  extended by com.unboundid.util.ssl.SSLSocketVerifier
      extended by com.unboundid.util.ssl.TrustAllSSLSocketVerifier

public final class TrustAllSSLSocketVerifier
extends SSLSocketVerifier

This class provides an implementation of an SSLSocket verifier that will blindly accept any SSLSocket.


Method Summary
static TrustAllSSLSocketVerifier getInstance()
          Retrieves a singleton instance of this SSL socket verifier.
 void verifySSLSocket(java.lang.String host, int port, javax.net.ssl.SSLSocket sslSocket)
          Verifies that the provided SSLSocket is acceptable and the connection should be allowed to remain established.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TrustAllSSLSocketVerifier getInstance()
Retrieves a singleton instance of this SSL socket verifier.

Returns:
A singleton instance of this SSL socket verifier.

verifySSLSocket

public void verifySSLSocket(java.lang.String host,
                            int port,
                            javax.net.ssl.SSLSocket sslSocket)
                     throws LDAPException
Verifies that the provided SSLSocket is acceptable and the connection should be allowed to remain established.

Specified by:
verifySSLSocket in class SSLSocketVerifier
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 - The SSLSocket that should be verified.
Throws:
LDAPException - If a problem is identified that should prevent the provided SSLSocket from remaining established.