public class SSLNetworkModule extends TCPNetworkModule
socket
Constructor and Description |
---|
SSLNetworkModule(SSLSocketFactory factory,
String host,
int port,
String resourceContext)
Constructs a new SSLNetworkModule using the specified host and
port.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getEnabledCiphers()
Returns the enabled cipher suites.
|
void |
setEnabledCiphers(String[] enabledCiphers)
Sets the enabled cipher suites on the underlying network socket.
|
void |
setSSLhandshakeTimeout(int timeout) |
void |
start()
Starts the module, by creating a TCP socket to the server.
|
getInputStream, getOutputStream, setConnectTimeout, stop
public SSLNetworkModule(SSLSocketFactory factory, String host, int port, String resourceContext)
public String[] getEnabledCiphers()
public void setEnabledCiphers(String[] enabledCiphers)
public void setSSLhandshakeTimeout(int timeout)
public void start() throws IOException, MqttException
TCPNetworkModule
start
in interface NetworkModule
start
in class TCPNetworkModule
IOException
MqttException
Copyright © 2018 Eclipse Paho. All rights reserved.