aboutsummaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/rfb/SecurityClient.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/tigervnc/rfb/SecurityClient.java')
-rw-r--r--java/com/tigervnc/rfb/SecurityClient.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/java/com/tigervnc/rfb/SecurityClient.java b/java/com/tigervnc/rfb/SecurityClient.java
index d3557337..726e43e1 100644
--- a/java/com/tigervnc/rfb/SecurityClient.java
+++ b/java/com/tigervnc/rfb/SecurityClient.java
@@ -62,6 +62,14 @@ public class SecurityClient extends Security {
case Security.secTypeX509Ident:
return (new CSecurityStack(secTypeX509Ident, "X509 with username only",
new CSecurityTLS(false), new CSecurityIdent()));
+ case Security.secTypeRA2:
+ return (new CSecurityRSAAES(secType, 128, true));
+ case Security.secTypeRA2ne:
+ return (new CSecurityRSAAES(secType, 128, false));
+ case Security.secTypeRA256:
+ return (new CSecurityRSAAES(secType, 256, true));
+ case Security.secTypeRAne256:
+ return (new CSecurityRSAAES(secType, 256, false));
default:
throw new Exception("Security type not supported");
}
@@ -75,7 +83,7 @@ public class SecurityClient extends Security {
public static StringParameter secTypes
= new StringParameter("SecurityTypes",
- "Specify which security scheme to use (None, VncAuth, Plain, Ident, TLSNone, TLSVnc, TLSPlain, TLSIdent, X509None, X509Vnc, X509Plain, X509Ident)",
- "X509Ident,X509Plain,TLSIdent,TLSPlain,X509Vnc,TLSVnc,X509None,TLSNone,Ident,VncAuth,None", Configuration.ConfigurationObject.ConfViewer);
+ "Specify which security scheme to use (None, VncAuth, Plain, Ident, TLSNone, TLSVnc, TLSPlain, TLSIdent, X509None, X509Vnc, X509Plain, X509Ident, RA2, RA2ne, RA2_256, RA2ne_256)",
+ "X509Ident,X509Plain,TLSIdent,TLSPlain,X509Vnc,TLSVnc,X509None,TLSNone,Ident,RA2_256,RA2,RA2ne_256,RA2ne,VncAuth,None", Configuration.ConfigurationObject.ConfViewer);
}