aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/tigervnc/vncviewer/VncViewer.java
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2010-11-18 14:00:12 +0000
committerAdam Tkac <atkac@redhat.com>2010-11-18 14:00:12 +0000
commit4be9da897c6a3ef45bc465583d3e7e6c75909022 (patch)
treeac612d2a7e43795b38a07ff0c7db65e3310acc1f /java/src/com/tigervnc/vncviewer/VncViewer.java
parent27b2f773be4db49762d78635c2c322a95bd141ce (diff)
downloadtigervnc-4be9da897c6a3ef45bc465583d3e7e6c75909022.tar.gz
tigervnc-4be9da897c6a3ef45bc465583d3e7e6c75909022.zip
[Development] java: Implement TLS security type. (Martin Koegler)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4199 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java/src/com/tigervnc/vncviewer/VncViewer.java')
-rw-r--r--java/src/com/tigervnc/vncviewer/VncViewer.java15
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 41f484f9..26c82384 100644
--- a/java/src/com/tigervnc/vncviewer/VncViewer.java
+++ b/java/src/com/tigervnc/vncviewer/VncViewer.java
@@ -392,6 +392,21 @@ public class VncViewer extends java.applet.Applet
rfb.authenticatePlain(user,pw);
}
break;
+ case RfbProto.SecTypeTLSNone:
+ showConnectionStatus("TLSNone");
+ rfb.authenticateTLS();
+ rfb.authenticateNone();
+ break;
+ case RfbProto.SecTypeTLSVnc:
+ showConnectionStatus("TLSVnc");
+ rfb.authenticateTLS();
+ doAuthentification(RfbProto.SecTypeVncAuth);
+ break;
+ case RfbProto.SecTypeTLSPlain:
+ showConnectionStatus("TLSPlain");
+ rfb.authenticateTLS();
+ doAuthentification(RfbProto.SecTypePlain);
+ break;
default:
throw new Exception("Unknown authentication scheme " + secType);
}