serial: switch from SSL to CryptUtils
[nikiroo-utils.git] / src / be / nikiroo / utils / serial / server / ConnectActionServerString.java
index 35dd4dd1985fb810c8300d4a810f16f227efd5a8..545e4b79fdae73c494333240443bc2c47db57d29 100644 (file)
@@ -21,9 +21,12 @@ public class ConnectActionServerString extends ConnectActionServer {
         * 
         * @param s
         *            the socket to bind to
+        * @param key
+        *            an optional key to encrypt all the communications (if NULL,
+        *            everything will be sent in clear text)
         */
-       public ConnectActionServerString(Socket s) {
-               super(s);
+       public ConnectActionServerString(Socket s, String key) {
+               super(s, key);
        }
 
        /**
@@ -31,11 +34,14 @@ public class ConnectActionServerString extends ConnectActionServer {
         * 
         * @param s
         *            the socket to bind to
+        * @param key
+        *            an optional key to encrypt all the communications (if NULL,
+        *            everything will be sent in clear text)
         * @param version
         *            the server version
         */
-       public ConnectActionServerString(Socket s, Version version) {
-               super(s, version);
+       public ConnectActionServerString(Socket s, String key, Version version) {
+               super(s, key, version);
        }
 
        /**