Git Product home page Git Product logo

jetty-alpn's Introduction

Jetty ALPN

Implementation of the ALPN (Application Layer Protocol Negotiation) Specification (RFC 7301) for OpenJDK 8.

โ—

The ALPN APIs have been backported from Java 9 to OpenJDK 8u252. Therefore, since OpenJDK 8u252 there is no more need for the Jetty ALPN boot jar provided by this project.

Please read the following blog entry for more context: https://webtide.com/jetty-alpn-java-8u252/.

๐Ÿ”ฅ

There are Java vendors that produced a 8u251 version that unfortunately is incompatible with the previous OpenJDK version (8u242) and incompatible with OpenJDK 8u252 as well.

There is no support for the 8u251 version from any vendor.

How to use ALPN with OpenJDK 8

The following are the options that allow you to use ALPN in your applications.

Option 1 - Enforce OpenJDK 8u252 or later

Enforce the use of OpenJDK 8u252 or later for your project.

Use directly the backported ALPN APIs provided by the OpenJDK 8u252 or later, or libraries that use the backported ALPN APIs.

There is no more need to add the Jetty ALPN boot jar provided by this project to the bootclasspath.

Option 2 - Use the Jetty ALPN Agent

Use the Jetty ALPN Agent 2.0.10 or later.

Add the agent to your command line options for any version of Java 8.

The agent will dynamically detect if the Java 8 version you are running requires the redefinition of the SSL classes (the redefinitions are provided by this project) to implement ALPN. If the Java 8 version you are using is 8u252 or later, the Jetty ALPN Agent will not redefine any class.

When using the Jetty ALPN Agent and OpenJDK 8u252 or later, applications should arrange to use directly, or via some other library such as the Jetty ALPN libraries, the backported ALPN APIs.

Option 3 - Carefully setup the command line

This option requires that you know exactly what Java 8 version your application uses, and change the command line options accordingly.

If you use OpenJDK 8u242 or earlier, you must add the corresponding Jetty ALPN boot jar to the bootclasspath.

If you use OpenJDK 8u252 or later, you must NOT add the Jetty ALPN boot jar to the bootclasspath.

Jetty ALPN libraries

The Jetty Project artifacts jetty-alpn-openjdk8-[client|server], version 9.4.28 or later, provide transparent support for ALPN.

If the OpenJDK version is 8u252 or later, they will use the backported ALPN APIs.

Otherwise, they will use the Jetty ALPN APIs provided by the Jetty ALPN boot jar (this project) that must be therefore present in the bootclasspath.

OpenJDK 8 version to ALPN version mapping

Please see the mapping table.

The table only shows the mapping up to OpenJDK 8u242, the last version that required the ALPN boot jar.

jetty-alpn's People

Contributors

sbordet avatar olamy avatar joakime avatar scottmitch avatar sehaas avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.