Package org.apache.directory.api.util
Class DummySSLSocketFactory
- java.lang.Object
-
- javax.net.SocketFactory
-
- javax.net.ssl.SSLSocketFactory
-
- 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
Constructors Constructor Description DummySSLSocketFactory()
Creates a new instance of DummySSLSocketFactory.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Socket
createSocket(String arg0, int arg1)
Socket
createSocket(String arg0, int arg1, InetAddress arg2, int arg3)
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)
static SocketFactory
getDefault()
Gets the default instance.String[]
getDefaultCipherSuites()
String[]
getSupportedCipherSuites()
-
Methods inherited from class javax.net.ssl.SSLSocketFactory
createSocket
-
Methods inherited from class javax.net.SocketFactory
createSocket
-
-
-
-
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 classSSLSocketFactory
- See Also:
SSLSocketFactory.getDefaultCipherSuites()
-
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuites
in classSSLSocketFactory
- See Also:
SSLSocketFactory.getSupportedCipherSuites()
-
createSocket
public Socket createSocket(Socket arg0, String arg1, int arg2, boolean arg3) throws IOException
- Specified by:
createSocket
in classSSLSocketFactory
- 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 classSocketFactory
- Throws:
IOException
- See Also:
SocketFactory.createSocket(java.lang.String, int)
-
createSocket
public Socket createSocket(InetAddress arg0, int arg1) throws IOException
- Specified by:
createSocket
in classSocketFactory
- 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 classSocketFactory
- 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 classSocketFactory
- Throws:
IOException
- See Also:
SocketFactory.createSocket(java.net.InetAddress, int, java.net.InetAddress, int)
-
-