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.
|
String |
getServerURI() |
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, stoppublic 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
TCPNetworkModulestart in interface NetworkModulestart in class TCPNetworkModuleIOExceptionMqttExceptionpublic String getServerURI()
getServerURI in interface NetworkModulegetServerURI in class TCPNetworkModuleCopyright © 2018 Eclipse Paho. All Rights Reserved.