aboutsummaryrefslogtreecommitdiffstats
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
...
* Whitespace cleanupBrian P. Hinz2016-12-102-11/+11
|
* Update versionBrian P. Hinz2016-12-101-1/+1
|
* Added a method for copying between streamsBrian P. Hinz2016-10-201-0/+11
|
* Added a method for reading into a ByteBufferBrian P. Hinz2016-10-201-0/+12
|
* Cosmetic change (increased border spacing)Brian P. Hinz2016-10-191-1/+1
|
* Added filename filters to file chooser dialogsBrian P. Hinz2016-08-284-8/+34
|
* Make all viewer parameters static. Viewer instances are isolated from each ↵Brian P. Hinz2016-08-2721-2230/+1748
| | | | other by spawning a completely new process for each viewer, rather than simply starting a new thread. All dialogs were redesigned to better match the look of the native viewer, and also to be more tolerant of sizing differences between platforms.
* Major overhaul of java viewer.Brian P. Hinz2016-08-072-0/+773
| | | | | | | | | | | | This is the first of several large commits intended to resolve a number of problems and add new capabilities to the java viewer. Among the most significant changes are a complete re-design of the options dialog, which has been converted to a callback style interface. The look & feel of all dialogs are now similar to the style of the native viewer now. Also, the process by which new viewers are spawned has changed and each viewer is a completely separate process, allowing for runtime arguments to be handled statically.
* Overhaul of SSH tunneling features in Java viewerBrian P. Hinz2016-03-317-386/+958
| | | | | | | | | Fixes numerous problems with the SSH tunneling implementation on the java viewer and adds many significant new SSH-related features. SSH tunneling is now highly configurable via the both the command line and GUI. The embedded client can parse openssh config files. An external client may be specified, along with a custom arguments template.
* change the Copyright yearBojan Memetovic2016-03-182-2/+2
|
* Fix names of menu keys in options dialog on OS XBrian P. Hinz2016-03-172-1/+8
| | | | | | Apple changed the implementation of KeyEvent.getKeyText() to return the unicode for the key glyph instead of a textual description.
* Code formatting tweaks (shorter line lengths)Brian P. Hinz2016-03-171-6/+13
|
* Various fixes to Java viewer UIBrian P. Hinz2016-03-177-506/+1014
| | | | | | | | Significant improvements to the Java viewer UI to make it more robust and tolerant of new tabs, fonts, etc. TextFields and editable ComboBoxes that are specific to integer values now only accept integer input.
* (U) Fix invalid String comparisonBrian P. Hinz2016-03-141-1/+1
|
* Regression fix for Java window sizeBrian P. Hinz2016-02-103-31/+20
| | | | | | | | 6262bac introduced a regression that resulted in a 1 pixel border around the window on some platforms. The underlying issue was actually caused by overriding the getPreferredSize() method in DesktopWindow and returning the scaled width & height, which might not have been set to valid values.
* Add workaround for Vino's VeNCrypt implementation to Java viewerBrian P. Hinz2016-01-171-2/+14
| | | | Implemented Pierre's workaround (1f8aba3) to java viewer.
* Suppress/eliminate JDK warningsBrian P. Hinz2015-12-2611-28/+48
|
* Upgrade in-tree jsch and jzlib to latest upstream versionsBrian P. Hinz2015-12-26153-2368/+8073
|
* Change development version to 1.6.80Pierre Ossman2015-11-261-1/+1
|
* Fix exit routine in java viewerBrian P. Hinz2015-10-111-4/+3
| | | | | Some exceptions were causing all viewers to exit, not just the one that threw the exception.
* More cleanup of x509 exception handling in java viewerBrian P. Hinz2015-10-111-27/+20
| | | | Also removed some unnecessary functions & variables in CSecurityTLS
* Cleanup exception handling for x509* auth types in java viewerBrian P. Hinz2015-10-101-58/+17
|
* Added hostname verification for x509 authentication typesBrian P. Hinz2015-10-092-3/+84
|
* Don't exit completely if single viewer declines server certBrian P. Hinz2015-09-202-4/+38
| | | | | | Prevents viewer from exiting completely just because user declined to trust the server certificate for a single connection. Copied from TurboVNC.
* Fixes for X509 CA certificate handlingBrian P. Hinz2015-09-191-24/+97
| | | | | | | | | 95f39a5 introduced a regression whereby an exception would be thrown when a PEM encoded CA certificate file containing one or more blank lines was read in under Apple Java 6. Additionally, CA certs were being appended to the ~/.vnc/x509_savedcerts.pem file even if they were already included in it. Also fixes a possible FileNotFoundException if the x509_savedcerts.pem file didn't exist.
* Fix Viewport initial sizing issue on OS XBrian P. Hinz2015-09-131-1/+3
| | | | | The layout manager on OS X sometimes sets the preferredSize to 0, so only call pack if that's not the case.
* Handle CA chain certificatesBrian P. Hinz2015-09-131-4/+7
| | | | | Allow the Java client to read CA certificates containing multiple certs concatenated together.
* Improve handling of x509 authenticationBrian P. Hinz2015-09-131-24/+101
| | | | | | | Fixes #193 and also adds automatic certificate saving feature like the Fltk viewer. Also pulls in CA certificates from all trusted authorities known to the JRE for the case when the server is using a certificate from a top-level authority.
* Fix UI logic in Java viewerBrian P. Hinz2015-08-201-1/+0
| | | | | Fixes an issue where the FullScreenAllMonitors checkbox in the OptionsDialog was not activated.
* Disable window functions for embedded appletBrian P. Hinz2015-08-202-0/+6
|
* Disable desktopSize option for embedded appletsBrian P. Hinz2015-08-201-1/+2
|
* Add multiple monitor spanning feature to java viewerBrian P. Hinz2015-08-204-12/+65
| | | | | | | | | Adds support for spanning multiple monitors in "Extended" mode to the Java viewer. Allows for spanning when maximizing in addition to just full-screen mode. Seems a bit unpredictable on MS Windows 7 (ie: depends on window placement, which screen is set as primary, etc.), but this appears to be the behavior of the OS itself.
* Java viewer UI updatesBrian P. Hinz2015-08-202-14/+11
| | | | | Make the layout of the options dialog more consistent with the native viewer.
* Fix desktopSize parameter issueBrian P. Hinz2015-08-201-5/+3
| | | | | | desktopSize preference was being applied even if the checkbox was unselected in the dialog is a value had previously been stored in the preferences file.
* Add resize on connect menu controls to Java viewerBrian P. Hinz2015-07-122-2/+65
| | | | Adds controls for resize on connect to the options dialog. Fixes #104
* Update OptionsDialog UI layout for better consistency with Fltk viewerBrian P. Hinz2015-07-121-25/+30
| | | | | Cosmetic updates to make the options dialog look more like the Fltk viewer.
* Allow java viewer to load without manifest properlyToni Spets2015-07-012-2/+2
|
* Change development version to 1.5.80Pierre Ossman2015-06-181-1/+1
|
* Decode serverCutText to ISO-8859-1Brian P. Hinz2015-03-021-7/+6
| | | | Java viewer was incorrectly attempting to decode incoming clipboard updates to UTF-8 instead of Latin-1.
* Don't violate RFB spec by sending UTF-8Brian P. Hinz2015-03-011-6/+5
| | | | Java viewer was violating the RFB specification by sending UTF-8 encoded clipboard text rather than ISO-8859-1.
* Merge pull request #75 from bphinz/javaBrian Hinz2014-11-191-4/+9
|\ | | | | More Java viewer clipboard handler fixes
| * More Java viewer clipboard handler fixesBrian P. Hinz2014-11-191-4/+9
| | | | | | | | | | | | | | | | | | * Override TransferHandler.exportToClipboard method to ensure that serverCutText updates get sent to the system clipboard. This wasn't always happening when relying on the super class' paste() method alone. * Removed some unnecessary setText() statements and one check for whether sending client cut text is enabled.
* | Change development version to 1.4.80Pierre Ossman2014-11-191-1/+1
|/ | | | | The 1.4 branch is now live, so change the version number of the development builds.
* Major rework of Java viewer clipboard handlingBrian P. Hinz2014-11-192-71/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Clipboard dialog UI significantly improved. - Fixes issue where scrollpane size did not track dialog size - Removed unnecessary JPanel - Adjusted default size of dialog to something more appropriate. * Clipboard dialog is now a pure clipboard viewer - Window title now reflects thati fact. - Eliminates problems with concurrency and updating contents. - Clipboard dialog now updates contents if a clipbard transfer occurs and the dialog is visible. - Prevents possible loop condition when text in the scrollpane is selected (ie: selection buffer triggers clipboard updates). * Custom TransferHandler implemented. - Limits the size of outbound clipboard transfers. - On Windows and Linux this implementation does not appear to provoke huge memory spike issue when the transferable is accessed. Unfortunately, the OSX implemenation still suffers from this problem, but that is a JRE issue. For the time being, this at least minimizes the problem. Additionaly, if an OutOfMemoryError is thrown, it's now caught and an error is logged rather than the viewer bailing out. - Vastly simpler implementation - the copy/paste methods inherent in the JTextArea are utilized for interfacing with the system clipboard. This eliminates the need for checking permissions, as well as streamlining the code quite a bit.
* Fixed issue where java viewer in listen mode did not exit properly.Brian P. Hinz2014-11-131-1/+1
| | | | | The viewer count was being incorrectly incremented, preventing the listening viewer from exiting when the window was closed.
* Fix getSockPort methods in java TcpSocketBrian P. Hinz2014-11-132-6/+5
| | | | | | | Although not actually used anywhere, the getSockPort method was actually returning the the remote socket's port number. Also simplified some of the other socket methods.
* Make sure sockets are shutdown in java viewer listen modeBrian P. Hinz2014-11-132-6/+15
| | | | | | The finalizer method may not be strictly necessary but for the sake of consistency shutdown the socket listener the same way we do for a regular TcpSocket.
* Java code cleanupBrian P. Hinz2014-11-133-50/+0
| | | | Deleted some useless comments in java viewer
* More enhancements to java SSLEngineManagerBrian P. Hinz2014-11-041-44/+44
| | | | | | | | | | * Blocking behavior in the read() method was leading to high CPU usage. * GC wasn't purging temporary byte arrays used to transfer data between I/O streams and NIO byte buffers, causing excessive memory usage. * Some optimization of read() behavior to reduce the frequency of blocking operations.
* Major overhaul of SSLEngineManagerBrian P. Hinz2014-11-024-184/+151
| | | | | | | | | | | | | | | | | | | | | | | | The SSLEngineManager was basically an abomination. The work is now done as it should be, with the buffers being fed and the engine deciding when data is consumed or produced. The engine should be much more robust now as well. Additionally, although JRE 7 supports the TLSv1.1 and TLSv1.2 protocols, they are not actually enabled by default. The JSSE reference cites compatibility reasons for this but this doesn't appear to be the case with the TigerVNC server and they will be enabled by default in JRE 8. The regular expression for enabling anonymous DH cipher suites was too narrow and excluded the elliptic curve ciphers, which are now ordered ahead of the ephemeral ciphers by the default security provider. Lastly, increase the size of the buffer in FdOutStream from 8Kb to 16Kb. I'm not sure why FdInStream and FdOutStream were asymmetric to begin with, but 16Kb is the default size for TLS packets and there seems to be now negative effects on plain text connections.