JDK-8171443 : (spec) An ALPN callback function may also ignore ALPN
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2016-12-19
  • Updated: 2020-02-21
  • Resolved: 2016-12-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9 Other
8u251Fixed 9 b151Fixed openjdk8u252Fixed
Related Reports
Relates :  
Description
TLS supports an ALPN callback function which enables ALPN parameters to be supplied during the TLS handshake.

See SSLEngine.setHandshakeApplicationProtocolSelector
and SSLSocket.setHandshakeApplicationProtocolSelector

The ALPN callback function is currently specified to return one of two values:
    o an application protocol name
    o null -- no acceptable protocol name

It should be specified that the callback function can also return:
    o an empty string -- to ignore ALPN