diff options
author | Adam Tkac <atkac@redhat.com> | 2010-11-18 14:17:49 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2010-11-18 14:17:49 +0000 |
commit | 28d838952fe355d9b981f72ebb27bb6ddfb6eb3c (patch) | |
tree | 6a89d0cf5f2c688d3890e1f30d81187b054d0e15 /java/src/com/tigervnc/vncviewer/VncViewer.java | |
parent | 4be9da897c6a3ef45bc465583d3e7e6c75909022 (diff) | |
download | tigervnc-28d838952fe355d9b981f72ebb27bb6ddfb6eb3c.tar.gz tigervnc-28d838952fe355d9b981f72ebb27bb6ddfb6eb3c.zip |
[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
Diffstat (limited to 'java/src/com/tigervnc/vncviewer/VncViewer.java')
-rw-r--r-- | java/src/com/tigervnc/vncviewer/VncViewer.java | 15 |
1 files changed, 15 insertions, 0 deletions
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); } |