From 28d838952fe355d9b981f72ebb27bb6ddfb6eb3c Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Thu, 18 Nov 2010 14:17:49 +0000 Subject: [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 --- java/src/com/tigervnc/vncviewer/VncViewer.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'java/src/com/tigervnc/vncviewer/VncViewer.java') diff --git a/java/src/com/tigervnc/vncviewer/VncViewer.java b/java/src/com/tigervnc/vncviewer/VncViewer.java index 26c82384..1c6482a3 100644 --- a/java/src/com/tigervnc/vncviewer/VncViewer.java +++ b/java/src/com/tigervnc/vncviewer/VncViewer.java @@ -407,6 +407,21 @@ public class VncViewer extends java.applet.Applet rfb.authenticateTLS(); doAuthentification(RfbProto.SecTypePlain); break; + case RfbProto.SecTypeX509None: + showConnectionStatus("X509None"); + rfb.authenticateX509(); + rfb.authenticateNone(); + break; + case RfbProto.SecTypeX509Vnc: + showConnectionStatus("X509Vnc"); + rfb.authenticateX509(); + doAuthentification(RfbProto.SecTypeVncAuth); + break; + case RfbProto.SecTypeX509Plain: + showConnectionStatus("X509Plain"); + rfb.authenticateX509(); + doAuthentification(RfbProto.SecTypePlain); + break; default: throw new Exception("Unknown authentication scheme " + secType); } -- cgit v1.2.3