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
connection - the configuration for the connectionsocket - the plain socket connection to secureclientMode - unused parameterremoteServer - unused parameterneedClientAuth - unused parameterIOException - if an exception occurspublic TLSStreamHandler(Socket socket, ConnectionConfiguration configuration, boolean clientMode) throws IOException
clientMode will be 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 secureconfiguration - the configuration for the connectionclientMode - boolean indicating if this entity is a client or a server.IOException - if an exception occurspublic 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–2019 Ignite Realtime. All rights reserved.