-
- All Implemented Interfaces:
-
org.eclipse.paho.client.mqttv3.internal.NetworkModule
public class SSLNetworkModule extends TCPNetworkModule
A network module for connecting over SSL.
-
-
Field Summary
Fields Modifier and Type Field Description private Array<String>enabledCiphers
-
Constructor Summary
Constructors Constructor Description SSLNetworkModule(SSLSocketFactory factory, String host, int port, String resourceContext, ILogger logger, IPahoEvents pahoEvents)Constructs a new SSLNetworkModule using the specified host and port.
-
Method Summary
Modifier and Type Method Description Array<String>getEnabledCiphers()Returns the enabled cipher suites. voidsetEnabledCiphers(Array<String> enabledCiphers)Sets the enabled cipher suites on the underlying network socket. voidsetSSLhandshakeTimeout(int timeout)voidstart()Starts the module, by creating a TCP socket to the server. voidstop()Stops the module, by closing the TCP socket. -
Methods inherited from class org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule
getInputStream, getOutputStream, getSocket, setConnectTimeout, setReadTimeout -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SSLNetworkModule
SSLNetworkModule(SSLSocketFactory factory, String host, int port, String resourceContext, ILogger logger, IPahoEvents pahoEvents)
Constructs a new SSLNetworkModule using the specified host and port.
-
-
Method Detail
-
getEnabledCiphers
Array<String> getEnabledCiphers()
Returns the enabled cipher suites.
-
setEnabledCiphers
void setEnabledCiphers(Array<String> enabledCiphers)
Sets the enabled cipher suites on the underlying network socket.
-
setSSLhandshakeTimeout
void setSSLhandshakeTimeout(int timeout)
-
start
void start()
Starts the module, by creating a TCP socket to the server.
-
stop
void stop()
Stops the module, by closing the TCP socket.
-
-
-
-