net.sourceforge.jtds.ssl

Class SocketFactories


public class SocketFactories
extends java.lang.Object

Used for acquiring a socket factory when SSL is enabled.
Version:
$Id: SocketFactories.java,v 1.8 2007/07/08 17:28:24 bheineman Exp $
Authors:
Rob Worsnop
Mike Hutchinson

Nested Class Summary

private static class
SocketFactories.TdsTlsSocketFactory
The socket factory for creating sockets based on the SSL setting.

Method Summary

static 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.

Method Details

getSocketFactory

public static 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.
Parameters:
ssl - the SSL setting
socket - plain TCP/IP socket to wrap

Generated on June 12 2008