Bug 5306: Enable the SSL connection for ovs manager
[ovsdb.git] / library / impl / src / main / java / org / opendaylight / ovsdb / lib / OvsdbConnection.java
index 6d5a35269f2105f9f837b3a7aade15cdad1cbdba..adbe99bbf6ce6a089abb0d1b9fe54fc52f2af7fa 100644 (file)
@@ -33,7 +33,7 @@ public interface OvsdbConnection {
      * @param port Layer 4 port on which the remote ovsdb server is listening on.
      * @return OvsDBClient The primary Client interface for the ovsdb connection.
      */
-    OvsdbClient connect(InetAddress address, int port);
+    OvsdbClient connect(final InetAddress address, final int port);
 
     /**
      * connect API can be used by the applications to initiate Active ssl
@@ -43,7 +43,8 @@ public interface OvsdbConnection {
      * @param sslContext Netty sslContext for channel configuration
      * @return OvsDBClient The primary Client interface for the ovsdb connection.
      */
-    OvsdbClient connectWithSsl(InetAddress address, int port, SSLContext sslContext);
+    OvsdbClient connectWithSsl(final InetAddress address, final int port,
+                               final SSLContext sslContext);
 
     /**
      * Method to disconnect an existing connection.
@@ -54,12 +55,13 @@ public interface OvsdbConnection {
     /**
      * Method to start ovsdb server for passive connection.
      */
-    boolean startOvsdbManager(int ovsdbListenPort);
+    boolean startOvsdbManager(final int ovsdbListenPort);
 
     /**
      * Method to start ovsdb server for passive connection with SSL.
      */
-    boolean startOvsdbManagerWithSsl(int ovsdbListenPort, SSLContext sslContext);
+    boolean startOvsdbManagerWithSsl(final int ovsdbListenPort,
+                                     final SSLContext sslContext, String[] protocols, String[] cipherSuites);
 
     /**
      * Method to register a Passive Connection Listener with the ConnectionService.