public class TLSStreamHandler extends Object
| Constructor and Description |
|---|
TLSStreamHandler(Connection connection,
Socket socket,
boolean clientMode,
String remoteServer,
boolean needClientAuth)
Deprecated.
Use the other constructor.
|
TLSStreamHandler(Socket socket,
ConnectionConfiguration configuration,
boolean clientMode)
Creates a new TLSStreamHandler and secures the plain socket connection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the channels that will end up closing the input and output streams of the connection.
|
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
SSLSession |
getSSLSession()
Returns the SSLSession in use.
|
void |
start() |
@Deprecated public TLSStreamHandler(Connection connection, Socket socket, boolean clientMode, String remoteServer, boolean needClientAuth) throws IOException
IOExceptionpublic TLSStreamHandler(Socket socket, ConnectionConfiguration configuration, boolean clientMode) throws IOException
true and
remoteServer is the server name of the remote server. Otherwise clientMode
will be false and remoteServer null.socket - the plain socket connection to secureclientMode - boolean indicating if this entity is a client or a server.IOExceptionpublic InputStream getInputStream()
public OutputStream getOutputStream()
public void start()
throws IOException
IOExceptionpublic void close()
throws IOException
IOException - if an I/O error occurs.public SSLSession getSSLSession()
Copyright © 2003-2008 Jive Software.