public class WebSocketSecureNetworkModule extends SSLNetworkModule
Constructor and Description |
---|
WebSocketSecureNetworkModule(javax.net.ssl.SSLSocketFactory factory,
java.lang.String uri,
java.lang.String host,
int port,
java.lang.String clientId) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream() |
java.io.OutputStream |
getOutputStream() |
java.lang.String |
getServerURI() |
void |
start()
Starts the module, by creating a TCP socket to the server.
|
void |
stop()
Stops the module, by closing the TCP socket.
|
getEnabledCiphers, setEnabledCiphers, setSSLhandshakeTimeout
setConnectTimeout
public WebSocketSecureNetworkModule(javax.net.ssl.SSLSocketFactory factory, java.lang.String uri, java.lang.String host, int port, java.lang.String clientId)
public void start() throws java.io.IOException, MqttException
TCPNetworkModule
start
in interface NetworkModule
start
in class SSLNetworkModule
java.io.IOException
MqttException
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface NetworkModule
getInputStream
in class TCPNetworkModule
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface NetworkModule
getOutputStream
in class TCPNetworkModule
java.io.IOException
public void stop() throws java.io.IOException
TCPNetworkModule
stop
in interface NetworkModule
stop
in class TCPNetworkModule
java.io.IOException
public java.lang.String getServerURI()
getServerURI
in interface NetworkModule
getServerURI
in class SSLNetworkModule