Package net.sourceforge.jtds.ssl
Class SocketFactories
java.lang.Object
net.sourceforge.jtds.ssl.SocketFactories
Used for acquiring a socket factory when SSL is enabled.
- Version:
- $Id: SocketFactories.java,v 1.8.2.1 2009-07-23 15:32:51 ickzon Exp $
- Author:
- Rob Worsnop, Mike Hutchinson
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
The socket factory for creating sockets based on the SSL setting. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SocketFactory
getSocketFactory
(String ssl, Socket socket) Returns a socket factory, the behavior of which will depend on the SSL setting and whether or not the DB server supports SSL.
-
Constructor Details
-
SocketFactories
public SocketFactories()
-
-
Method Details
-
getSocketFactory
Returns a socket factory, the behavior of which will depend on the SSL setting and whether or not the DB server supports SSL.- Parameters:
ssl
- the SSL settingsocket
- plain TCP/IP socket to wrap
-