org.apache.directory.api.util
Class DummySSLSocketFactory

java.lang.Object
  extended by javax.net.SocketFactory
      extended by javax.net.ssl.SSLSocketFactory
          extended by org.apache.directory.api.util.DummySSLSocketFactory

public class DummySSLSocketFactory
extends SSLSocketFactory

A SSLSocketFactory that accepts every certificat without validation.

Author:
Apache Directory Project

Constructor Summary
DummySSLSocketFactory()
          Creates a new instance of DummySSLSocketFactory.
 
Method Summary
 Socket createSocket(InetAddress arg0, int arg1)
           
 Socket createSocket(InetAddress arg0, int arg1, InetAddress arg2, int arg3)
           
 Socket createSocket(Socket arg0, String arg1, int arg2, boolean arg3)
           
 Socket createSocket(String arg0, int arg1)
           
 Socket createSocket(String arg0, int arg1, InetAddress arg2, int arg3)
           
static SocketFactory getDefault()
          Gets the default instance.
 String[] getDefaultCipherSuites()
           
 String[] getSupportedCipherSuites()
           
 
Methods inherited from class javax.net.SocketFactory
createSocket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummySSLSocketFactory

public DummySSLSocketFactory()
Creates a new instance of DummySSLSocketFactory.

Method Detail

getDefault

public static SocketFactory getDefault()
Gets the default instance. Note: This method is invoked from the JNDI framework when creating a ldaps:// connection.

Returns:
the default instance

getDefaultCipherSuites

public String[] getDefaultCipherSuites()
Specified by:
getDefaultCipherSuites in class SSLSocketFactory
See Also:
SSLSocketFactory.getDefaultCipherSuites()

getSupportedCipherSuites

public String[] getSupportedCipherSuites()
Specified by:
getSupportedCipherSuites in class SSLSocketFactory
See Also:
SSLSocketFactory.getSupportedCipherSuites()

createSocket

public Socket createSocket(Socket arg0,
                           String arg1,
                           int arg2,
                           boolean arg3)
                    throws IOException
Specified by:
createSocket in class SSLSocketFactory
Throws:
IOException
See Also:
SSLSocketFactory.createSocket(java.net.Socket, java.lang.String, int, boolean)

createSocket

public Socket createSocket(String arg0,
                           int arg1)
                    throws IOException
Specified by:
createSocket in class SocketFactory
Throws:
IOException
See Also:
SocketFactory.createSocket(java.lang.String, int)

createSocket

public Socket createSocket(InetAddress arg0,
                           int arg1)
                    throws IOException
Specified by:
createSocket in class SocketFactory
Throws:
IOException
See Also:
SocketFactory.createSocket(java.net.InetAddress, int)

createSocket

public Socket createSocket(String arg0,
                           int arg1,
                           InetAddress arg2,
                           int arg3)
                    throws IOException
Specified by:
createSocket in class SocketFactory
Throws:
IOException
See Also:
SocketFactory.createSocket(java.lang.String, int, java.net.InetAddress, int)

createSocket

public Socket createSocket(InetAddress arg0,
                           int arg1,
                           InetAddress arg2,
                           int arg3)
                    throws IOException
Specified by:
createSocket in class SocketFactory
Throws:
IOException
See Also:
SocketFactory.createSocket(java.net.InetAddress, int, java.net.InetAddress, int)


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.