summaryrefslogtreecommitdiffstats
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
* TigerVNC 1.6.0v1.6.01.6-branchPierre Ossman2015-12-241-1/+1
|
* TigerVNC 1.5.90 (1.6.0 beta)v1.5.90Pierre 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.
* Embedded applet should not show server dialogBrian P. Hinz2014-06-261-1/+1
|
* r5142 and r5149 borrowed code from the TurboVNC viewer, which has different ↵Brian Hinz2014-01-111-5/+6
| | | | | | Configuration parameter logic. This caused an exception in the usage() method git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5156 3789f03b-4d11-0410-bbf8-ca57d06f2519
* r5138 did not completely resolve the problem with clipboard data consuming ↵Brian Hinz2014-01-113-21/+28
| | | | | | too much heap space. Large amounts of clipboard data could still cause the heap size to grow to huge sizes. This patch tries to address the problem by opening a Reader to the underlying IO stream and then reading only up to MaxCutText characters. The garbage collector is invoked manually rather than waiting for the JVM to do it in order to prevent the heap size from growing in between JVM invoked garbage collections. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5155 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fixes for modality issues & dialog behavior in embedded mode.Brian Hinz2014-01-102-4/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5154 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Moved OS X setDockIconImage call into VncViewer.setLookAndFeel so that the ↵Brian Hinz2014-01-102-16/+13
| | | | | | dockImage gets set faster. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5153 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Set the dock icon on OS X. Not perfect as it still shows the standard Java ↵Brian Hinz2014-01-041-2/+18
| | | | | | logo for a second or two, but better than nothing git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5151 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Release all downKeys when the focus is lost, otherwise the state of the ↵Brian Hinz2014-01-023-24/+7
| | | | | | keyboard will be inconsistent when the focus is regained. Also, the direction of the key release was incorrect in r5147. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5150 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Re-introduces embedded applet mode for the java viewer. On Windows and ↵Brian Hinz2014-01-028-66/+241
| | | | | | Linux, the embedded applet can be dragged from the browser window and detached from the browser process. The mouse gesture for detaching the applet is ALT+drag on Windows and SHIFT+drag on Linux. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5149 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Updated copyright noticesBrian Hinz2013-12-293-3/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5148 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Another overhaul of the key event handlers. There was a fundamental flaw in ↵Brian Hinz2013-12-294-1092/+1184
| | | | | | the previous implementation due to the fact that java key modifiers associated with a key_pressed or key_released event are reported with respect to each particular event. Thus, for example a key sequence of CTRL press, letter press, CTRL release, letter release never sends the corresponding release for the CTRL+letter down event. Key events are now synchronized on a monitor object to help ensure that the key sequence is preserved. This implementation mirrors the fltk viewer quite closely and, as far as I can tell, is capable of sending all of the same keysyms. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5147 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Added attributes to the Java viewer MANIFEST file in order to conform to ↵Brian Hinz2013-12-023-13/+69
| | | | | | upcoming JRE requirements. Added support for specifying a signing certificate in place of the self-signed certificate. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5145 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fix regression in java install path introduced in r5143Brian Hinz2013-12-021-4/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5144 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fixed incorrect ConnParam initial value in CConn constructor. Thanks to ↵Brian Hinz2013-12-011-1/+1
| | | | | | Pierre for pointing that out. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5143 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Copied Lion fullScreen code from TurboVNC viewer. This is a more robust ↵Brian Hinz2013-12-014-69/+114
| | | | | | implementation and does not suffer from Java bugs 8009911 or 4783448 like the existing code did. CMakeLists file was also updated to be more similar to the TurboVNC cmake file. This wasn't strictly necessary but it simplifies things a bit. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5142 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fixes a condition where too much data on the local clipboard causes the ↵Brian Hinz2013-11-233-29/+30
| | | | | | client to exceed the max heap size and exit. Since the server will, by default, discard clipboard transfers greater than 256KB anyway, a parameter was added which sets the default max clipboard size that the client will hold to 256KB also. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5138 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Applied DRC's patch to fix broken RRE decoder in java clientBrian Hinz2013-10-031-1/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5136 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Update more copyrights to 2013. Peter Åstrand2013-06-112-2/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5122 3789f03b-4d11-0410-bbf8-ca57d06f2519