|
Openfire 3.4.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.net.TLSStreamHandler
public class TLSStreamHandler
TLSStreamHandler is responsible for securing plain connections by negotiating TLS. By creating a new instance of this class the plain connection will be secured.
Constructor Summary | |
---|---|
TLSStreamHandler(Socket socket,
boolean clientMode,
String remoteServer,
boolean needClientAuth)
Creates a new TLSStreamHandler and secures the plain socket connection. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TLSStreamHandler(Socket socket, boolean clientMode, String remoteServer, boolean needClientAuth) 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.remoteServer
- server name of the remote server we are connecting to or null
when not in client mode.needClientAuth
- boolean that indicates if client should authenticate during the TLS
negotiation. This option is only required when the client is a server since
EXTERNAL SASL is going to be used.
IOException
Method Detail |
---|
public InputStream getInputStream()
public OutputStream getOutputStream()
public void close() throws IOException
IOException
- if an I/O error occurs.public SSLSession getSSLSession()
|
Openfire 3.4.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |