JDK-4727279 : RFE: Make an SSLServerSocketChannel
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2002-08-06
  • Updated: 2002-08-07
  • Resolved: 2002-08-07
Related Reports
Duplicate :  
Description

Name: gm110360			Date: 08/06/2002


FULL PRODUCT VERSION :
java version "1.4.1-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b14)
Java HotSpot(TM) Client VM (build 1.4.1-beta-b14, mixed mode)

FULL OPERATING SYSTEM VERSION :

Microsoft Windows 2000 [Version 5.00.2195]

ADDITIONAL OPERATING SYSTEMS :

Platform-independent

A DESCRIPTION OF THE PROBLEM :
The old way was to create a java.net.ServerSocket.

Now it is possible to create a
java.nio.channels.ServerSocketChannel which then allows you
to create a java.nio.channels.Selector and select on a
server socket.

It is also possible to create a
javax.net.ssl.SSLServerSocket.

However, it does NOT appear to be possible to create an
SSLServerSocketChannel.

You can't adapt the ServerSocketChannel to work with an
SSLServerSocket, because the ServerSocketChannel cannot be
associated with an arbitrary ServerSocket (or descendant),
and there is no way to specify that it should create a
specific descendant of ServerSocket.

Nor is it possible to adapt the ServerSocket you do get, to
support SSL.

So, please create an SSLServerSocketChannel.

EXPECTED VERSUS ACTUAL BEHAVIOR :
Just for symmetry's sake I had expected such a class to
exist. It does not.

REPRODUCIBILITY :
This bug can be reproduced always.
(Review ID: 160308) 
======================================================================