[Development] java: Implement X509 Security types. (Martin Koegler)


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4200 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/java/src/com/tigervnc/vncviewer/RfbProto.java b/java/src/com/tigervnc/vncviewer/RfbProto.java
index eb8ca93..e88d8e7 100644
--- a/java/src/com/tigervnc/vncviewer/RfbProto.java
+++ b/java/src/com/tigervnc/vncviewer/RfbProto.java
@@ -434,6 +434,9 @@
 		case SecTypeTLSNone:
 		case SecTypeTLSVnc:
 		case SecTypeTLSPlain:
+		case SecTypeX509None:
+		case SecTypeX509Vnc:
+		case SecTypeX509Plain:
 		    writeInt(secTypes[i]);
 		    return secTypes[i];
 		}
@@ -484,6 +487,11 @@
 	tunnel.setup (this);
     }
 
+    void authenticateX509() throws Exception {
+	X509Tunnel tunnel = new X509Tunnel(sock);
+	tunnel.setup (this);
+    }
+
     void authenticatePlain(String User, String Password) throws Exception {
       byte[] user=User.getBytes();
       byte[] password=Password.getBytes();