diff options
author | Brian P. Hinz <bphinz@users.sf.net> | 2017-11-30 21:23:46 -0500 |
---|---|---|
committer | Brian P. Hinz <bphinz@users.sf.net> | 2017-11-30 21:24:55 -0500 |
commit | 88a4541705c20c937db2d8a269c6a065070343ec (patch) | |
tree | fcf84083bf87014592049193251b723c09b65f0a /java/com/tigervnc/rfb/CConnection.java | |
parent | 9a9f9f0ec170253f43cbf78a33a6b18f148e6259 (diff) | |
download | tigervnc-88a4541705c20c937db2d8a269c6a065070343ec.tar.gz tigervnc-88a4541705c20c937db2d8a269c6a065070343ec.zip |
Display security state when asking for password (java)
Diffstat (limited to 'java/com/tigervnc/rfb/CConnection.java')
-rw-r--r-- | java/com/tigervnc/rfb/CConnection.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/com/tigervnc/rfb/CConnection.java b/java/com/tigervnc/rfb/CConnection.java index aefc2760..c9b6b89a 100644 --- a/java/com/tigervnc/rfb/CConnection.java +++ b/java/com/tigervnc/rfb/CConnection.java @@ -389,6 +389,8 @@ abstract public class CConnection extends CMsgHandler { // Identities, to determine the unique(ish) name of the server. public String getServerName() { return serverName; } + public boolean isSecure() { return csecurity != null ? csecurity.isSecure() : false; } + public static final int RFBSTATE_UNINITIALISED = 0; public static final int RFBSTATE_PROTOCOL_VERSION = 1; public static final int RFBSTATE_SECURITY_TYPES = 2; |