org.eclipse.paho.client.mqttv3.internal
Class SSLNetworkModule
java.lang.Object
org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule
org.eclipse.paho.client.mqttv3.internal.SSLNetworkModule
- All Implemented Interfaces:
- NetworkModule
public class SSLNetworkModule
- extends TCPNetworkModule
A network module for connecting over SSL.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSLNetworkModule
public SSLNetworkModule(SSLSocketFactory factory,
String host,
int port,
String resourceContext)
- Constructs a new SSLNetworkModule using the specified host and
port. The supplied SSLSocketFactory is used to supply the network
socket.
getEnabledCiphers
public String[] getEnabledCiphers()
- Returns the enabled cipher suites.
setEnabledCiphers
public void setEnabledCiphers(String[] enabledCiphers)
- Sets the enabled cipher suites on the underlying network socket.
setSSLhandshakeTimeout
public void setSSLhandshakeTimeout(int timeout)
start
public void start()
throws IOException,
MqttException
- Description copied from class:
TCPNetworkModule
- Starts the module, by creating a TCP socket to the server.
- Specified by:
start
in interface NetworkModule
- Overrides:
start
in class TCPNetworkModule
- Throws:
IOException
MqttException
Copyright © 2013. All Rights Reserved.