org.eclipse.paho.client.mqttv3.internal
Class SSLNetworkModule

java.lang.Object
  extended by org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule
      extended by org.eclipse.paho.client.mqttv3.internal.SSLNetworkModule
All Implemented Interfaces:
NetworkModule

public class SSLNetworkModule
extends TCPNetworkModule

A network module for connecting over SSL.


Field Summary
 
Fields inherited from class org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule
socket
 
Constructor Summary
SSLNetworkModule(SSLSocketFactory factory, String host, int port, String resourceContext)
          Constructs a new SSLNetworkModule using the specified host and port.
 
Method Summary
 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.
 
Methods inherited from class org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule
getInputStream, getOutputStream, setConnectTimeout, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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.